source: src/main/java/com/tourMate/dto/HotelReservationUserDto.java

Last change on this file was 07f4e8b, checked in by darsov2 <62809499+darsov2@…>, 12 months ago

prefinal fixes

  • Property mode set to 100644
File size: 2.0 KB
Line 
1package com.tourMate.dto;
2import com.tourMate.entities.HotelRoom;
3import com.tourMate.entities.User;
4import org.springframework.format.annotation.DateTimeFormat;
5
6import java.util.Date;
7
8public class HotelReservationUserDto {
9 private Long reservationId;
10 private User user;
11 private HotelRoom hotelRoom;
12 private Long hotelId;
13 @DateTimeFormat(pattern = "dd.MM.yyyy")
14 private Date dateFrom;
15 @DateTimeFormat(pattern = "dd.MM.yyyy")
16 private Date dateTo;
17 private Integer numBeds;
18 private String hotelName;
19 private String hotelLocation;
20 private String hotelAddress;
21 private Boolean reviewed;
22
23 public HotelReservationUserDto(Long reservationId, User user, HotelRoom hotelRoom, Date dateFrom, Date dateTo, Integer numBeds, String hotelName, String hotelLocation, String hotelAddress, Long hotelId, Boolean reviewed) {
24 this.reservationId = reservationId;
25 this.user = user;
26 this.hotelRoom = hotelRoom;
27 this.dateFrom = dateFrom;
28 this.dateTo = dateTo;
29 this.numBeds = numBeds;
30 this.hotelLocation = hotelLocation;
31 this.hotelName = hotelName;
32 this.hotelAddress = hotelAddress;
33 this.hotelId = hotelId;
34 this.reviewed = reviewed;
35 }
36
37 public Long getReservationId() {
38 return reservationId;
39 }
40
41 public User getUser() {
42 return user;
43 }
44
45 public HotelRoom getHotelRoom() {
46 return hotelRoom;
47 }
48
49 public Date getDateFrom() {
50 return dateFrom;
51 }
52
53 public Date getDateTo() {
54 return dateTo;
55 }
56
57 public Integer getNumBeds() {
58 return numBeds;
59 }
60
61 public String getHotelName() {
62 return hotelName;
63 }
64
65 public String getHotelLocation() {
66 return hotelLocation;
67 }
68 public String getHotelAddress() {
69 return hotelAddress;
70 }
71
72 public Long getHotelId() {
73 return hotelId;
74 }
75
76 public Boolean getReviewed() {
77 return reviewed;
78 }
79}
Note: See TracBrowser for help on using the repository browser.