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:
588 bytes
|
Rev | Line | |
---|
[fdfbdde] | 1 | package com.example.task.entity.term;
|
---|
| 2 |
|
---|
| 3 | import com.example.task.entity.schoolyear.SchoolYearEntity;
|
---|
| 4 | import jakarta.persistence.*;
|
---|
| 5 | import lombok.AllArgsConstructor;
|
---|
| 6 | import lombok.Getter;
|
---|
| 7 | import lombok.NoArgsConstructor;
|
---|
| 8 | import lombok.Setter;
|
---|
| 9 |
|
---|
| 10 | import java.time.LocalDate;
|
---|
| 11 |
|
---|
| 12 | @Entity
|
---|
| 13 | @Table(name = "term", schema = "project")
|
---|
| 14 | @NoArgsConstructor
|
---|
| 15 | @AllArgsConstructor
|
---|
| 16 | @Getter
|
---|
| 17 | @Setter
|
---|
| 18 | public class TermEntity {
|
---|
| 19 |
|
---|
| 20 | @EmbeddedId
|
---|
| 21 | private TermId termId;
|
---|
| 22 |
|
---|
| 23 | @Column(name = "term_start_date")
|
---|
| 24 | private LocalDate startDate;
|
---|
| 25 |
|
---|
| 26 | @Column(name = "term_end_date")
|
---|
| 27 | private LocalDate endDate;
|
---|
| 28 |
|
---|
| 29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.