source: src/main/java/com/example/task/entity/event/RepeatingEvent.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: 805 bytes
Line 
1package com.example.task.entity.event;
2
3import jakarta.persistence.Column;
4import jakarta.persistence.EmbeddedId;
5import jakarta.persistence.Entity;
6import jakarta.persistence.Table;
7import lombok.AllArgsConstructor;
8import lombok.Getter;
9import lombok.NoArgsConstructor;
10import lombok.Setter;
11
12import java.time.LocalDate;
13
14@Entity
15@Table(name = "repeating_event", schema = "project")
16@NoArgsConstructor
17@AllArgsConstructor
18@Getter
19@Setter
20public class RepeatingEvent {
21
22 @EmbeddedId
23 private NonRepeatingEventId id;
24
25 @Column(name = "event_week_day")
26 private String day;
27
28 @Column(name = "repeats_every_n_weeks")
29 private Integer repeat;
30
31 @Column(name = "starting_date")
32 private LocalDate startingDate;
33
34 @Column(name = "ending_date")
35 private LocalDate endingDate;
36
37
38
39}
Note: See TracBrowser for help on using the repository browser.