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