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

main
Last change on this file was b67dfd3, checked in by Aleksandar Panovski <apano77@…>, 12 days ago

Normalization needed to continue, till here done

  • 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 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
Note: See TracBrowser for help on using the repository browser.