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 | |
---|
1 | package com.example.demo.model.Gives;
|
---|
2 |
|
---|
3 | import com.example.demo.model.Auditorium;
|
---|
4 | import com.example.demo.model.MovieProjection;
|
---|
5 | import lombok.AllArgsConstructor;
|
---|
6 | import lombok.NoArgsConstructor;
|
---|
7 |
|
---|
8 | import javax.persistence.Embeddable;
|
---|
9 | import javax.persistence.JoinColumn;
|
---|
10 | import javax.persistence.ManyToOne;
|
---|
11 | import java.io.Serializable;
|
---|
12 |
|
---|
13 | @AllArgsConstructor
|
---|
14 | @NoArgsConstructor
|
---|
15 | @Embeddable
|
---|
16 | public 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.