source:
src/main/java/com/example/moviezone/model/Event.java
Last change on this file was 0fb69cc, checked in by , 22 months ago | |
---|---|
|
|
File size: 750 bytes |
Rev | Line | |
---|---|---|
[e6b2246] | 1 | package com.example.moviezone.model; |
2 | ||
3 | import lombok.Getter; | |
4 | import lombok.Setter; | |
5 | import lombok.ToString; | |
6 | ||
[2269653] | 7 | import javax.persistence.*; |
8 | ||
9 | ||
[caf3a07] | 10 | import java.time.LocalDate; |
11 | ||
[e6b2246] | 12 | @Entity |
13 | @Getter | |
14 | @Setter | |
15 | @ToString | |
16 | @Table(name = "events") | |
17 | public class Event { | |
18 | ||
19 | @Id | |
20 | @GeneratedValue(strategy = GenerationType.IDENTITY) | |
21 | Integer id_event; | |
[caf3a07] | 22 | |
23 | String theme; | |
24 | String duration; | |
25 | String repeating; | |
[0fb69cc] | 26 | String img_url; |
[caf3a07] | 27 | LocalDate start_date; |
28 | ||
[0fb69cc] | 29 | public Event(String theme, String duration, String repeating, LocalDate start_date,String img_url) { |
[302b233] | 30 | this.theme = theme; |
31 | this.duration = duration; | |
[0fb69cc] | 32 | this.img_url=img_url; |
[302b233] | 33 | this.repeating = repeating; |
34 | this.start_date = start_date; | |
35 | } | |
[a073dad] | 36 | |
37 | public Event() { | |
38 | ||
39 | } | |
[0fb69cc] | 40 | |
[e6b2246] | 41 | } |
Note:
See TracBrowser
for help on using the repository browser.