source: src/main/java/com/example/task/entity/schoolyear/SchoolYearId.java

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 
1package com.example.task.entity.schoolyear;
2
3import com.example.task.entity.StudentEntity;
4import jakarta.persistence.Column;
5import jakarta.persistence.Embeddable;
6import jakarta.persistence.JoinColumn;
7import jakarta.persistence.ManyToOne;
8import lombok.AllArgsConstructor;
9import lombok.Getter;
10import lombok.NoArgsConstructor;
11import lombok.Setter;
12
13import java.io.Serializable;
14
15@Embeddable
16@Getter
17@Setter
18@AllArgsConstructor
19@NoArgsConstructor
20public 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.