source: src/main/java/com/example/moviezone/model/Event.java@ 8204d83

Last change on this file since 8204d83 was 0fb69cc, checked in by DenicaKj <dkorvezir@…>, 22 months ago

Adding Events To Home Page

  • Property mode set to 100644
File size: 750 bytes
Line 
1package com.example.moviezone.model;
2
3import lombok.Getter;
4import lombok.Setter;
5import lombok.ToString;
6
7import javax.persistence.*;
8
9
10import java.time.LocalDate;
11
12@Entity
13@Getter
14@Setter
15@ToString
16@Table(name = "events")
17public class Event {
18
19 @Id
20 @GeneratedValue(strategy = GenerationType.IDENTITY)
21 Integer id_event;
22
23 String theme;
24 String duration;
25 String repeating;
26 String img_url;
27 LocalDate start_date;
28
29 public Event(String theme, String duration, String repeating, LocalDate start_date,String img_url) {
30 this.theme = theme;
31 this.duration = duration;
32 this.img_url=img_url;
33 this.repeating = repeating;
34 this.start_date = start_date;
35 }
36
37 public Event() {
38
39 }
40
41}
Note: See TracBrowser for help on using the repository browser.