source: src/main/java/project/educatum/model/Interest.java

Last change on this file was d3cf3a1, checked in by Marija Micevska <marija_micevska@…>, 2 years ago

Initial commit

  • Property mode set to 100644
File size: 621 bytes
Line 
1package project.educatum.model;
2
3import lombok.Data;
4import project.educatum.model.primarykeys.InterestID;
5
6import javax.persistence.Column;
7import javax.persistence.EmbeddedId;
8import javax.persistence.Entity;
9import javax.persistence.Table;
10import java.time.LocalDate;
11
12@Data
13@Entity
14@Table(name = "zainteresiran_za", schema = "project")
15public 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.