source: source/MovieZilla-master/src/main/java/com/example/demo/model/MovieProjection.java

Last change on this file was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 2 years ago

all files

  • Property mode set to 100644
File size: 2.5 KB
Line 
1package com.example.demo.model;
2
3import javax.persistence.*;
4import java.util.Optional;
5
6@Entity
7@Table(name="movieprojection")
8public class MovieProjection {
9 @Id
10 //@GeneratedValue
11 Integer projection_id;
12 String projection_movie_start;
13 String projection_movie_end;
14 String projection_screening_date;
15 String projection_type;
16 Float projection_price;
17
18 @ManyToOne
19 @JoinColumn(name="movie_id")
20 private Movie movie;
21
22 public MovieProjection(Integer projection_id, String projection_movie_start, String projection_movie_end, String projection_screening_date, String projection_type, Float projection_price, Movie movie) {
23 this.projection_id=projection_id;
24 this.projection_movie_start = projection_movie_start;
25 this.projection_movie_end = projection_movie_end;
26 this.projection_screening_date = projection_screening_date;
27 this.projection_type = projection_type;
28 this.projection_price = projection_price;
29 this.movie = movie;
30 }
31
32 public MovieProjection() {
33
34 }
35
36 public Integer getProjection_id() {
37 return projection_id;
38 }
39
40 public void setProjection_id(Integer projection_id) {
41 this.projection_id = projection_id;
42 }
43
44 public String getProjection_movie_start() {
45 return projection_movie_start;
46 }
47
48 public void setProjection_movie_start(String projection_movie_start) {
49 this.projection_movie_start = projection_movie_start;
50 }
51
52 public String getProjection_movie_end() {
53 return projection_movie_end;
54 }
55
56 public void setProjection_movie_end(String projection_movie_end) {
57 this.projection_movie_end = projection_movie_end;
58 }
59
60 public String getProjection_screening_date() {
61 return projection_screening_date;
62 }
63
64 public void setProjection_screening_date(String projection_screening_date) {
65 this.projection_screening_date = projection_screening_date;
66 }
67
68 public String getProjection_type() {
69 return projection_type;
70 }
71
72 public void setProjection_type(String projection_type) {
73 this.projection_type = projection_type;
74 }
75
76 public Float getProjection_price() {
77 return projection_price;
78 }
79
80 public void setProjection_price(Float projection_price) {
81 this.projection_price = projection_price;
82 }
83
84 public Movie getMovie() {
85 return movie;
86 }
87
88 public String getMovie_name(){
89 return movie.getMovie_name();
90 }
91 public void setMovie(Movie movie) {
92 this.movie = movie;
93 }
94}
95
Note: See TracBrowser for help on using the repository browser.