Last change
on this file since d3cf3a1 was d3cf3a1, checked in by Marija Micevska <marija_micevska@…>, 2 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
621 bytes
|
Rev | Line | |
---|
[d3cf3a1] | 1 | package project.educatum.model;
|
---|
| 2 |
|
---|
| 3 | import lombok.Data;
|
---|
| 4 | import project.educatum.model.primarykeys.InterestID;
|
---|
| 5 |
|
---|
| 6 | import javax.persistence.Column;
|
---|
| 7 | import javax.persistence.EmbeddedId;
|
---|
| 8 | import javax.persistence.Entity;
|
---|
| 9 | import javax.persistence.Table;
|
---|
| 10 | import java.time.LocalDate;
|
---|
| 11 |
|
---|
| 12 | @Data
|
---|
| 13 | @Entity
|
---|
| 14 | @Table(name = "zainteresiran_za", schema = "project")
|
---|
| 15 | public class Interest {
|
---|
| 16 | @EmbeddedId
|
---|
| 17 | private InterestID id;
|
---|
| 18 |
|
---|
| 19 | @Column(name = "datum")
|
---|
| 20 | private LocalDate date;
|
---|
| 21 |
|
---|
| 22 | public Interest(InterestID interestID, LocalDate date) {
|
---|
| 23 | this.id = interestID;
|
---|
| 24 | this.date = date;
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 27 | public Interest() {
|
---|
| 28 |
|
---|
| 29 | }
|
---|
| 30 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.