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
|
Rev | Line | |
---|
[fc7ec52] | 1 | package com.example.demo.model.Gives;
|
---|
| 2 |
|
---|
| 3 | import lombok.AllArgsConstructor;
|
---|
| 4 | import lombok.Data;
|
---|
| 5 | import lombok.NoArgsConstructor;
|
---|
| 6 |
|
---|
| 7 | import javax.persistence.EmbeddedId;
|
---|
| 8 | import javax.persistence.Entity;
|
---|
| 9 | import javax.persistence.Table;
|
---|
| 10 |
|
---|
| 11 | @Entity
|
---|
| 12 | @Data
|
---|
| 13 | @Table(name="gives")
|
---|
| 14 | public 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.