Changeset e85a562 for src/main/java
- Timestamp:
- 01/16/24 16:27:46 (10 months ago)
- Branches:
- master
- Children:
- e6c2521
- Parents:
- ac19a0c
- Location:
- src/main/java/com/tourMate
- Files:
-
- 62 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/tourMate/entities/HotelRoom.java
rac19a0c re85a562 5 5 6 6 import javax.validation.constraints.NotNull; 7 import java.util.List; 7 8 8 9 @Entity … … 20 21 private Boolean airConditioning; 21 22 private Boolean balcony; 23 private List<HotelRoomImages> images; 22 24 23 25 public HotelRoom(long hotelRoomId, Hotels hotel, String hotelRoomDescription, String hotelRoomName, double price, Boolean kitchenAvailable, Boolean airConditioning, Boolean balcony, int numOfBeds) { … … 147 149 this.numOfBeds = numOfBeds; 148 150 } 151 152 @OneToMany(mappedBy = "room") 153 public List<HotelRoomImages> getImages() { 154 return images; 155 } 156 157 public void setImages(List<HotelRoomImages> images) { 158 this.images = images; 159 } 149 160 } -
src/main/java/com/tourMate/entities/HotelRoomImages.java
rac19a0c re85a562 1 1 package com.tourMate.entities; 2 2 3 import com.fasterxml.jackson.annotation.JsonIgnore; 3 4 import jakarta.persistence.*; 4 5 import org.jetbrains.annotations.NotNull; … … 8 9 public class HotelRoomImages { 9 10 private long imageID; 11 @JsonIgnore 10 12 private HotelRoom room; 11 13 private String url; 14 15 public HotelRoomImages(HotelRoom room, String url) { 16 this.room = room; 17 this.url = url; 18 } 19 20 public HotelRoomImages() { 21 22 } 12 23 13 24 @Id
Note:
See TracChangeset
for help on using the changeset viewer.