Last change
on this file since 448bd84 was a073dad, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago |
html for addEvent, addFilm and addProjection
|
-
Property mode
set to
100644
|
File size:
1015 bytes
|
Line | |
---|
1 | package com.example.moviezone.model;
|
---|
2 |
|
---|
3 | import lombok.Getter;
|
---|
4 | import lombok.Setter;
|
---|
5 | import lombok.ToString;
|
---|
6 |
|
---|
7 | import javax.persistence.*;
|
---|
8 |
|
---|
9 |
|
---|
10 | import java.time.LocalDate;
|
---|
11 |
|
---|
12 | @Entity
|
---|
13 | @Getter
|
---|
14 | @Setter
|
---|
15 | @ToString
|
---|
16 | @Table(name = "films")
|
---|
17 | public class Film {
|
---|
18 |
|
---|
19 | @Id
|
---|
20 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
21 | Integer id_film;
|
---|
22 |
|
---|
23 | String name;
|
---|
24 | Integer duration;
|
---|
25 | String actors;
|
---|
26 | String genre;
|
---|
27 | String age_category;
|
---|
28 | String url;
|
---|
29 | String director;
|
---|
30 | LocalDate start_date;
|
---|
31 | LocalDate end_date;
|
---|
32 |
|
---|
33 | public Film(String name, Integer duration, String actors, String genre, String age_category, String url, String director, LocalDate start_date, LocalDate end_date) {
|
---|
34 | this.name = name;
|
---|
35 | this.duration = duration;
|
---|
36 | this.actors = actors;
|
---|
37 | this.genre = genre;
|
---|
38 | this.age_category = age_category;
|
---|
39 | this.url = url;
|
---|
40 | this.director = director;
|
---|
41 | this.start_date = start_date;
|
---|
42 | this.end_date = end_date;
|
---|
43 | }
|
---|
44 |
|
---|
45 | public Film() {
|
---|
46 |
|
---|
47 | }
|
---|
48 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.