source: src/main/java/project/educatum/model/relations/TeacherSubjectRelation.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: 725 bytes
Line 
1package project.educatum.model.relations;
2
3import lombok.Data;
4import project.educatum.model.primarykeys.TeacherSubjectRelationID;
5
6import javax.persistence.Column;
7import javax.persistence.EmbeddedId;
8import javax.persistence.Entity;
9import javax.persistence.Table;
10
11@Data
12@Entity
13@Table(name = "predava_predmet", schema = "project")
14public class TeacherSubjectRelation {
15
16 @EmbeddedId
17 private TeacherSubjectRelationID id;
18
19 @Column(name = "opis", nullable = false, length = 500)
20 private String description;
21
22 public TeacherSubjectRelation(TeacherSubjectRelationID id, String description) {
23 this.id = id;
24 this.description = description;
25 }
26
27 public TeacherSubjectRelation() {
28
29 }
30
31}
Note: See TracBrowser for help on using the repository browser.