1 | package com.example.demo.model;
|
---|
2 |
|
---|
3 | import com.example.demo.model.IS_.MovieGenreCombination;
|
---|
4 |
|
---|
5 | import javax.persistence.*;
|
---|
6 | import java.util.Set;
|
---|
7 |
|
---|
8 | @Entity
|
---|
9 | @Table(name="movie")
|
---|
10 | public class Movie{
|
---|
11 | @Id
|
---|
12 | //@GeneratedValue(strategy = GenerationType.AUTO)
|
---|
13 | Integer movie_id;
|
---|
14 |
|
---|
15 | String movie_name;
|
---|
16 | String movie_age_category;
|
---|
17 | String movie_production;
|
---|
18 | String movie_film_director;
|
---|
19 | String movie_cast;
|
---|
20 | String movie_time_duration;
|
---|
21 |
|
---|
22 |
|
---|
23 | public Movie(Integer movie_id, String movie_name, String movie_age_category, String movie_production, String movie_film_director, String movie_cast, String movie_time_duration) {
|
---|
24 | this.movie_id=movie_id;
|
---|
25 | this.movie_name = movie_name;
|
---|
26 | this.movie_age_category = movie_age_category;
|
---|
27 | this.movie_production = movie_production;
|
---|
28 | this.movie_film_director = movie_film_director;
|
---|
29 | this.movie_cast = movie_cast;
|
---|
30 | this.movie_time_duration = movie_time_duration;
|
---|
31 | }
|
---|
32 |
|
---|
33 | public Movie() {
|
---|
34 |
|
---|
35 | }
|
---|
36 |
|
---|
37 | public Integer getMovie_id() {
|
---|
38 | return movie_id;
|
---|
39 | }
|
---|
40 |
|
---|
41 | public void setMovie_id(Integer movie_id) {
|
---|
42 | this.movie_id = movie_id;
|
---|
43 | }
|
---|
44 |
|
---|
45 | public String getMovie_name() {
|
---|
46 | return movie_name;
|
---|
47 | }
|
---|
48 |
|
---|
49 | public void setMovie_name(String movie_name) {
|
---|
50 | this.movie_name = movie_name;
|
---|
51 | }
|
---|
52 |
|
---|
53 | public String getMovie_age_category() {
|
---|
54 | return movie_age_category;
|
---|
55 | }
|
---|
56 |
|
---|
57 | public void setMovie_age_category(String movie_age_category) {
|
---|
58 | this.movie_age_category = movie_age_category;
|
---|
59 | }
|
---|
60 |
|
---|
61 | public String getMovie_production() {
|
---|
62 | return movie_production;
|
---|
63 | }
|
---|
64 |
|
---|
65 | public void setMovie_production(String movie_production) {
|
---|
66 | this.movie_production = movie_production;
|
---|
67 | }
|
---|
68 |
|
---|
69 | public String getMovie_film_director() {
|
---|
70 | return movie_film_director;
|
---|
71 | }
|
---|
72 |
|
---|
73 | public void setMovie_film_director(String movie_film_director) {
|
---|
74 | this.movie_film_director = movie_film_director;
|
---|
75 | }
|
---|
76 |
|
---|
77 | public String getMovie_cast() {
|
---|
78 | return movie_cast;
|
---|
79 | }
|
---|
80 |
|
---|
81 | public void setMovie_cast(String movie_cast) {
|
---|
82 | this.movie_cast = movie_cast;
|
---|
83 | }
|
---|
84 |
|
---|
85 | public String getMovie_time_duration() {
|
---|
86 | return movie_time_duration;
|
---|
87 | }
|
---|
88 |
|
---|
89 | public void setMovie_time_duration(String movie_time_duration) {
|
---|
90 | this.movie_time_duration = movie_time_duration;
|
---|
91 | }
|
---|
92 | }
|
---|