source: src/main/java/com/example/moviezone/model/Film.java@ cb5debb

Last change on this file since cb5debb was eb5426c, checked in by DenicaKj <dkorvezir@…>, 22 months ago

Home Page

  • Property mode set to 100644
File size: 1.6 KB
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 = "films")
17public 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
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 }
88}
Note: See TracBrowser for help on using the repository browser.