source: src/main/java/com/example/rezevirajmasa/demo/dto/TableDTO.java@ deea3c4

main
Last change on this file since deea3c4 was deea3c4, checked in by Aleksandar Panovski <apano77@…>, 3 weeks ago

Big change done fully handle_reservation_update() trigger works

  • Property mode set to 100644
File size: 1.8 KB
Line 
1package com.example.rezevirajmasa.demo.dto;
2
3import lombok.NoArgsConstructor;
4
5import 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 // Getters and setters
26 public Long getId() {
27 return id;
28 }
29
30 public void setId(Long id) {
31 this.id = id;
32 }
33
34 public Integer getCapacity() {
35 return capacity;
36 }
37
38 public void setCapacity(Integer capacity) {
39 this.capacity = capacity;
40 }
41
42 public String getLocation() {
43 return location;
44 }
45
46 public void setLocation(String location) {
47 this.location = location;
48 }
49
50 public String getDescription() {
51 return description;
52 }
53
54 public void setDescription(String description) {
55 this.description = description;
56 }
57
58 public Integer getReservationDurationHours() {
59 return reservationDurationHours;
60 }
61
62 public void setReservationDurationHours(Integer reservationDurationHours) {
63 this.reservationDurationHours = reservationDurationHours;
64 }
65
66 public List<ReservationDTO> getReservations() {
67 return reservations;
68 }
69
70 public void setReservations(List<ReservationDTO> reservations) {
71 this.reservations = reservations;
72 }
73}
74
Note: See TracBrowser for help on using the repository browser.