source: source/MovieZilla-master/src/main/java/com/example/demo/model/Gives/GivesKey.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: 1014 bytes
Line 
1package com.example.demo.model.Gives;
2
3import com.example.demo.model.Auditorium;
4import com.example.demo.model.MovieProjection;
5import lombok.AllArgsConstructor;
6import lombok.NoArgsConstructor;
7
8import javax.persistence.Embeddable;
9import javax.persistence.JoinColumn;
10import javax.persistence.ManyToOne;
11import java.io.Serializable;
12
13@AllArgsConstructor
14@NoArgsConstructor
15@Embeddable
16public class GivesKey implements Serializable {
17
18
19 @ManyToOne
20 @JoinColumn(name="projection_id")
21 public MovieProjection movieProjection;
22
23 @ManyToOne
24 @JoinColumn(name="auditorium_id")
25 public Auditorium auditorium;
26
27 public MovieProjection getMovieProjection() {
28 return movieProjection;
29 }
30
31 public void setMovieProjection(MovieProjection movieProjection) {
32 this.movieProjection = movieProjection;
33 }
34
35 public Auditorium getAuditorium() {
36 return auditorium;
37 }
38
39 public void setAuditorium(Auditorium auditorium) {
40 this.auditorium = auditorium;
41 }
42
43
44}
Note: See TracBrowser for help on using the repository browser.