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.1 KB
|
Line | |
---|
1 | package com.example.demo.model.Controles;
|
---|
2 |
|
---|
3 | import com.example.demo.model.Employee.Employee;
|
---|
4 | import com.example.demo.model.MovieProjection;
|
---|
5 |
|
---|
6 | import javax.persistence.Embeddable;
|
---|
7 | import javax.persistence.JoinColumn;
|
---|
8 | import javax.persistence.ManyToOne;
|
---|
9 | import java.io.Serializable;
|
---|
10 |
|
---|
11 | @Embeddable
|
---|
12 | public class ControlesKey implements Serializable {
|
---|
13 |
|
---|
14 | @ManyToOne
|
---|
15 | @JoinColumn(name="user_id")
|
---|
16 | public Employee employee;
|
---|
17 |
|
---|
18 | @ManyToOne
|
---|
19 | @JoinColumn(name="projection_id")
|
---|
20 | public MovieProjection movieProjection;
|
---|
21 |
|
---|
22 | public ControlesKey(Employee employee, MovieProjection movieProjection) {
|
---|
23 | this.employee = employee;
|
---|
24 | this.movieProjection = movieProjection;
|
---|
25 | }
|
---|
26 |
|
---|
27 | public ControlesKey() {
|
---|
28 |
|
---|
29 | }
|
---|
30 |
|
---|
31 | public Employee getEmployee() {
|
---|
32 | return employee;
|
---|
33 | }
|
---|
34 |
|
---|
35 | public void setEmployee(Employee employee) {
|
---|
36 | this.employee = employee;
|
---|
37 | }
|
---|
38 |
|
---|
39 | public MovieProjection getMovieProjection() {
|
---|
40 | return movieProjection;
|
---|
41 | }
|
---|
42 |
|
---|
43 | public void setMovieProjection(MovieProjection movieProjection) {
|
---|
44 | this.movieProjection = movieProjection;
|
---|
45 | }
|
---|
46 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.