source: source/MovieZilla-master/src/main/java/com/example/demo/model/Controles/ControlesKey.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.1 KB
Line 
1package com.example.demo.model.Controles;
2
3import com.example.demo.model.Employee.Employee;
4import com.example.demo.model.MovieProjection;
5
6import javax.persistence.Embeddable;
7import javax.persistence.JoinColumn;
8import javax.persistence.ManyToOne;
9import java.io.Serializable;
10
11@Embeddable
12public 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.