source: src/main/java/com/example/task/entity/term/TermEntity.java@ fdfbdde

Last change on this file since fdfbdde 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
Line 
1package com.example.task.entity.term;
2
3import com.example.task.entity.schoolyear.SchoolYearEntity;
4import jakarta.persistence.*;
5import lombok.AllArgsConstructor;
6import lombok.Getter;
7import lombok.NoArgsConstructor;
8import lombok.Setter;
9
10import java.time.LocalDate;
11
12@Entity
13@Table(name = "term", schema = "project")
14@NoArgsConstructor
15@AllArgsConstructor
16@Getter
17@Setter
18public 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.