Last change
on this file was fdfbdde, checked in by Stojilkova Sara <sara.stojilkova.students.finki.ukim.mk>, 9 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
741 bytes
|
Line | |
---|
1 | package com.example.task.entity.schoolyear;
|
---|
2 |
|
---|
3 | import com.example.task.entity.StudentEntity;
|
---|
4 | import jakarta.persistence.Column;
|
---|
5 | import jakarta.persistence.Embeddable;
|
---|
6 | import jakarta.persistence.JoinColumn;
|
---|
7 | import jakarta.persistence.ManyToOne;
|
---|
8 | import lombok.AllArgsConstructor;
|
---|
9 | import lombok.Getter;
|
---|
10 | import lombok.NoArgsConstructor;
|
---|
11 | import lombok.Setter;
|
---|
12 |
|
---|
13 | import java.io.Serializable;
|
---|
14 |
|
---|
15 | @Embeddable
|
---|
16 | @Getter
|
---|
17 | @Setter
|
---|
18 | @AllArgsConstructor
|
---|
19 | @NoArgsConstructor
|
---|
20 | public class SchoolYearId implements Serializable {
|
---|
21 |
|
---|
22 |
|
---|
23 | @Column(name = "starting_year")
|
---|
24 | private Integer startingYear;
|
---|
25 |
|
---|
26 | @Column(name = "finishing_year")
|
---|
27 | private Integer finishingYear;
|
---|
28 |
|
---|
29 | @ManyToOne
|
---|
30 | @JoinColumn(name = "student_id")
|
---|
31 | private StudentEntity studentId;
|
---|
32 |
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.