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:
725 bytes
|
Rev | Line | |
---|
[d3cf3a1] | 1 | package project.educatum.model.relations;
|
---|
| 2 |
|
---|
| 3 | import lombok.Data;
|
---|
| 4 | import project.educatum.model.primarykeys.TeacherSubjectRelationID;
|
---|
| 5 |
|
---|
| 6 | import javax.persistence.Column;
|
---|
| 7 | import javax.persistence.EmbeddedId;
|
---|
| 8 | import javax.persistence.Entity;
|
---|
| 9 | import javax.persistence.Table;
|
---|
| 10 |
|
---|
| 11 | @Data
|
---|
| 12 | @Entity
|
---|
| 13 | @Table(name = "predava_predmet", schema = "project")
|
---|
| 14 | public 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.