[e6c2521] | 1 | package com.tourMate.dto;
|
---|
| 2 | import com.tourMate.entities.HotelRoom;
|
---|
| 3 | import com.tourMate.entities.User;
|
---|
| 4 | import org.springframework.format.annotation.DateTimeFormat;
|
---|
| 5 |
|
---|
| 6 | import java.util.Date;
|
---|
| 7 |
|
---|
| 8 | public class HotelReservationUserDto {
|
---|
[07f4e8b] | 9 | private Long reservationId;
|
---|
[e6c2521] | 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 |
|
---|
[07f4e8b] | 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;
|
---|
[e6c2521] | 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 |
|
---|
[07f4e8b] | 37 | public Long getReservationId() {
|
---|
| 38 | return reservationId;
|
---|
| 39 | }
|
---|
| 40 |
|
---|
[e6c2521] | 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 | }
|
---|