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:
805 bytes
|
Line | |
---|
1 | package com.example.task.entity.event;
|
---|
2 |
|
---|
3 | import jakarta.persistence.Column;
|
---|
4 | import jakarta.persistence.EmbeddedId;
|
---|
5 | import jakarta.persistence.Entity;
|
---|
6 | import jakarta.persistence.Table;
|
---|
7 | import lombok.AllArgsConstructor;
|
---|
8 | import lombok.Getter;
|
---|
9 | import lombok.NoArgsConstructor;
|
---|
10 | import lombok.Setter;
|
---|
11 |
|
---|
12 | import java.time.LocalDate;
|
---|
13 |
|
---|
14 | @Entity
|
---|
15 | @Table(name = "repeating_event", schema = "project")
|
---|
16 | @NoArgsConstructor
|
---|
17 | @AllArgsConstructor
|
---|
18 | @Getter
|
---|
19 | @Setter
|
---|
20 | public 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.