source: source/MovieZilla-master/src/main/java/com/example/demo/model/dto/MovieProjectionDto.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.6 KB
Line 
1package com.example.demo.model.dto;
2
3import com.example.demo.model.Movie;
4
5import javax.persistence.GeneratedValue;
6import javax.persistence.Id;
7import javax.persistence.JoinColumn;
8import javax.persistence.ManyToOne;
9
10public class MovieProjectionDto {
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
19 public Movie movie;
20
21 public MovieProjectionDto(Integer projection_id, String projection_movie_start, String projection_movie_end, String projection_screening_date, String projection_type, Float projection_price, Movie movie) {
22 this.projection_movie_start = projection_movie_start;
23 this.projection_movie_end = projection_movie_end;
24 this.projection_screening_date = projection_screening_date;
25 this.projection_type = projection_type;
26 this.projection_price = projection_price;
27 this.movie = movie;
28 }
29
30 public MovieProjectionDto() {
31
32 }
33
34 public Integer getProjection_id() {
35 return projection_id;
36 }
37
38 public void setProjection_id(Integer projection_id) {
39 this.projection_id = projection_id;
40 }
41
42 public String getProjection_movie_start() {
43 return projection_movie_start;
44 }
45
46 public void setProjection_movie_start(String projection_movie_start) {
47 this.projection_movie_start = projection_movie_start;
48 }
49
50 public String getProjection_movie_end() {
51 return projection_movie_end;
52 }
53
54 public void setProjection_movie_end(String projection_movie_end) {
55 this.projection_movie_end = projection_movie_end;
56 }
57
58 public String getProjection_screening_date() {
59 return projection_screening_date;
60 }
61
62 public void setProjection_screening_date(String projection_screening_date) {
63 this.projection_screening_date = projection_screening_date;
64 }
65
66 public String getProjection_type() {
67 return projection_type;
68 }
69
70 public void setProjection_type(String projection_type) {
71 this.projection_type = projection_type;
72 }
73
74 public Float getProjection_price() {
75 return projection_price;
76 }
77
78 public void setProjection_price(Float projection_price) {
79 this.projection_price = projection_price;
80 }
81
82 public Movie getMovie() {
83 return movie;
84 }
85
86 public String getMovie_name(){
87 return movie.getMovie_name();
88 }
89 public void setMovie(Movie movie) {
90 this.movie = movie;
91 }
92
93 public Integer getMovie_id() {
94 return this.movie.getMovie_id();
95 }
96}
Note: See TracBrowser for help on using the repository browser.