source: source/MovieZilla-master/src/main/java/com/example/demo/model/Gives/Gives.java@ fc7ec52

Last change on this file since fc7ec52 was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 22 months ago

all files

  • Property mode set to 100644
File size: 904 bytes
Line 
1package com.example.demo.model.Gives;
2
3import lombok.AllArgsConstructor;
4import lombok.Data;
5import lombok.NoArgsConstructor;
6
7import javax.persistence.EmbeddedId;
8import javax.persistence.Entity;
9import javax.persistence.Table;
10
11@Entity
12@Data
13@Table(name="gives")
14public class Gives {
15
16 @EmbeddedId
17 private GivesKey givesKey;
18
19 Integer seat_limitation;
20
21 public Gives() {
22
23 }
24
25 public GivesKey getGivesKey() {
26 return givesKey;
27 }
28
29 public Gives(GivesKey givesKey, Integer seat_limitation) {
30 this.givesKey = givesKey;
31 this.seat_limitation = seat_limitation;
32 }
33
34
35 public void setGivesKey(GivesKey givesKey) {
36 this.givesKey = givesKey;
37 }
38
39 public Integer getSeat_limitation() {
40 return seat_limitation;
41 }
42
43 public void setSeat_limitation(Integer seat_limitation) {
44 this.seat_limitation = seat_limitation;
45 }
46}
Note: See TracBrowser for help on using the repository browser.