Fix booking snapshot lazy loading
All checks were successful
build-and-deploy / build-deploy (push) Successful in 33s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 33s
This commit is contained in:
@@ -13,4 +13,7 @@ interface BookingRepo : JpaRepository<Booking, UUID> {
|
||||
fun findByPropertyIdAndStatusInOrderByCreatedAtDesc(propertyId: UUID, status: Collection<com.android.trisolarisserver.models.booking.BookingStatus>): List<Booking>
|
||||
@EntityGraph(attributePaths = ["primaryGuest"])
|
||||
fun findByPropertyIdOrderByCreatedAtDesc(propertyId: UUID): List<Booking>
|
||||
|
||||
@EntityGraph(attributePaths = ["property", "primaryGuest", "createdBy"])
|
||||
fun findDetailedById(id: UUID): java.util.Optional<Booking>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user