source: source/MovieZilla-master/src/main/java/com/example/demo/model/Seat/Seat.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: 829 bytes
Line 
1package com.example.demo.model.Seat;
2
3import lombok.Data;
4
5import javax.persistence.*;
6
7@Entity
8@Data
9@Table(name="seat")
10public class Seat {
11
12 @EmbeddedId
13 public SeatCompositeKey seatCompositeKey;
14
15 Integer seat_number;
16
17 public Seat(SeatCompositeKey seatCompositeKey, Integer seat_number) {
18 this.seatCompositeKey = seatCompositeKey;
19 this.seat_number = seat_number;
20
21 }
22
23 public Seat() {
24 }
25
26 public SeatCompositeKey getSeatCompositeKey() {
27 return seatCompositeKey;
28 }
29
30 public void setSeatCompositeKey(SeatCompositeKey seatCompositeKey) {
31 this.seatCompositeKey = seatCompositeKey;
32 }
33
34 public Integer getSeat_number() {
35 return seat_number;
36 }
37
38 public void setSeat_number(Integer seat_number) {
39 this.seat_number = seat_number;
40 }
41
42}
Note: See TracBrowser for help on using the repository browser.