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 |
|
---|
[e6b2246] | 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;
|
---|
[eb226b2] | 28 | String url;
|
---|
[e6b2246] | 29 | String director;
|
---|
| 30 | LocalDate start_date;
|
---|
| 31 | LocalDate end_date;
|
---|
| 32 |
|
---|
[302b233] | 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 | }
|
---|
[a073dad] | 44 |
|
---|
| 45 | public Film() {
|
---|
| 46 |
|
---|
| 47 | }
|
---|
[eb5426c] | 48 |
|
---|
| 49 | public Integer getId_film() {
|
---|
| 50 | return id_film;
|
---|
| 51 | }
|
---|
| 52 |
|
---|
| 53 | public String getName() {
|
---|
| 54 | return name;
|
---|
| 55 | }
|
---|
| 56 |
|
---|
| 57 | public Integer getDuration() {
|
---|
| 58 | return duration;
|
---|
| 59 | }
|
---|
| 60 |
|
---|
| 61 | public String getActors() {
|
---|
| 62 | return actors;
|
---|
| 63 | }
|
---|
| 64 |
|
---|
| 65 | public String getGenre() {
|
---|
| 66 | return genre;
|
---|
| 67 | }
|
---|
| 68 |
|
---|
| 69 | public String getAge_category() {
|
---|
| 70 | return age_category;
|
---|
| 71 | }
|
---|
| 72 |
|
---|
| 73 | public String getUrl() {
|
---|
| 74 | return url;
|
---|
| 75 | }
|
---|
| 76 |
|
---|
| 77 | public String getDirector() {
|
---|
| 78 | return director;
|
---|
| 79 | }
|
---|
| 80 |
|
---|
| 81 | public LocalDate getStart_date() {
|
---|
| 82 | return start_date;
|
---|
| 83 | }
|
---|
| 84 |
|
---|
| 85 | public LocalDate getEnd_date() {
|
---|
| 86 | return end_date;
|
---|
| 87 | }
|
---|
[e6b2246] | 88 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.