- Timestamp:
- 04/28/25 14:21:17 (3 weeks ago)
- Branches:
- main
- Children:
- e15e8d9
- Parents:
- f5b256e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/rezevirajmasa/demo/dto/TableDTO.java
rf5b256e rdeea3c4 1 package com.example.rezevirajmasa.demo.dto;public class TableDTO { 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 // 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 } 2 73 } 74
Note:
See TracChangeset
for help on using the changeset viewer.