1 | package com.example.rezevirajmasa.demo.dto;
|
---|
2 |
|
---|
3 | import lombok.NoArgsConstructor;
|
---|
4 |
|
---|
5 | import java.util.List;
|
---|
6 |
|
---|
7 | @NoArgsConstructor
|
---|
8 | public class TableDTO {
|
---|
9 | private Long id;
|
---|
10 | private Integer capacity;
|
---|
11 | private String location;
|
---|
12 | private String description;
|
---|
13 | private Integer reservationDurationHours;
|
---|
14 | private List<ReservationDTO> reservations;
|
---|
15 |
|
---|
16 | public TableDTO(Long id, Integer capacity, String location, String description, Integer reservationDurationHours, List<ReservationDTO> reservations) {
|
---|
17 | this.id = id;
|
---|
18 | this.capacity = capacity;
|
---|
19 | this.location = location;
|
---|
20 | this.description = description;
|
---|
21 | this.reservationDurationHours = reservationDurationHours;
|
---|
22 | this.reservations = reservations;
|
---|
23 | }
|
---|
24 |
|
---|
25 | public Long getId() {
|
---|
26 | return id;
|
---|
27 | }
|
---|
28 |
|
---|
29 | public void setId(Long id) {
|
---|
30 | this.id = id;
|
---|
31 | }
|
---|
32 |
|
---|
33 | public Integer getCapacity() {
|
---|
34 | return capacity;
|
---|
35 | }
|
---|
36 |
|
---|
37 | public void setCapacity(Integer capacity) {
|
---|
38 | this.capacity = capacity;
|
---|
39 | }
|
---|
40 |
|
---|
41 | public String getLocation() {
|
---|
42 | return location;
|
---|
43 | }
|
---|
44 |
|
---|
45 | public void setLocation(String location) {
|
---|
46 | this.location = location;
|
---|
47 | }
|
---|
48 |
|
---|
49 | public String getDescription() {
|
---|
50 | return description;
|
---|
51 | }
|
---|
52 |
|
---|
53 | public void setDescription(String description) {
|
---|
54 | this.description = description;
|
---|
55 | }
|
---|
56 |
|
---|
57 | public Integer getReservationDurationHours() {
|
---|
58 | return reservationDurationHours;
|
---|
59 | }
|
---|
60 |
|
---|
61 | public void setReservationDurationHours(Integer reservationDurationHours) {
|
---|
62 | this.reservationDurationHours = reservationDurationHours;
|
---|
63 | }
|
---|
64 |
|
---|
65 | public List<ReservationDTO> getReservations() {
|
---|
66 | return reservations;
|
---|
67 | }
|
---|
68 |
|
---|
69 | public void setReservations(List<ReservationDTO> reservations) {
|
---|
70 | this.reservations = reservations;
|
---|
71 | }
|
---|
72 | }
|
---|
73 |
|
---|