source: source/MovieZilla-master/src/main/java/com/example/demo/model/Reservation/ReservationCombo.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: 1.4 KB
Line 
1package com.example.demo.model.Reservation;
2
3import com.example.demo.model.Client.Client;
4import com.example.demo.model.MovieProjection;
5import com.example.demo.model.PaymentType;
6import com.example.demo.model.Seat.Seat;
7import lombok.AllArgsConstructor;
8import lombok.NoArgsConstructor;
9
10import javax.persistence.Embeddable;
11import javax.persistence.JoinColumn;
12import javax.persistence.ManyToOne;
13import java.io.Serializable;
14
15@Embeddable
16@AllArgsConstructor
17@NoArgsConstructor
18public class ReservationCombo implements Serializable {
19
20 @ManyToOne
21 public PaymentType paymentType;
22
23 @ManyToOne
24 public Client client;
25
26 @ManyToOne
27 public Seat seat;
28
29 @ManyToOne
30 public MovieProjection movieProjection;
31
32 public PaymentType getPaymentType() {
33 return paymentType;
34 }
35
36 public void setPaymentType(PaymentType paymentType) {
37 this.paymentType = paymentType;
38 }
39
40 public Client getClient() {
41 return client;
42 }
43
44 public void setClient(Client client) {
45 this.client = client;
46 }
47
48 public Seat getSeat() {
49 return seat;
50 }
51
52 public void setSeat(Seat seat) {
53 this.seat = seat;
54 }
55
56 public MovieProjection getMovieProjection() {
57 return movieProjection;
58 }
59
60 public void setMovieProjection(MovieProjection movieProjection) {
61 this.movieProjection = movieProjection;
62 }
63}
Note: See TracBrowser for help on using the repository browser.