We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59f658b commit ad21f90Copy full SHA for ad21f90
1 file changed
hotelSelection-backend/src/main/kotlin/de/xxx/hotelselection/domain/model/entity/Hotel.kt
@@ -22,5 +22,5 @@ class Hotel(
22
val hotelName: String,
23
val city: String,
24
val price: BigDecimal,
25
- @OneToMany(mappedBy = "hotel") var bookings: Set<Booking>
+ @OneToMany(mappedBy = "hotel", targetEntity = Booking::class) var bookings: Set<Booking> = mutableSetOf()
26
) {}
0 commit comments