Fix booking snapshot lazy loading
All checks were successful
build-and-deploy / build-deploy (push) Successful in 33s

This commit is contained in:
androidlover5842
2026-01-31 14:45:40 +05:30
parent d692deb402
commit 34fc7ca7d2
3 changed files with 13 additions and 2 deletions

View File

@@ -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>
}