From 0104e87050a83f84618c109b967296667dbe1d46 Mon Sep 17 00:00:00 2001 From: androidlover5842 Date: Tue, 27 Jan 2026 03:04:09 +0530 Subject: [PATCH] Eagerly fetch room type when loading room by id --- src/main/kotlin/com/android/trisolarisserver/repo/RoomRepo.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/com/android/trisolarisserver/repo/RoomRepo.kt b/src/main/kotlin/com/android/trisolarisserver/repo/RoomRepo.kt index 9ec9925..8069380 100644 --- a/src/main/kotlin/com/android/trisolarisserver/repo/RoomRepo.kt +++ b/src/main/kotlin/com/android/trisolarisserver/repo/RoomRepo.kt @@ -13,6 +13,7 @@ interface RoomRepo : JpaRepository { @EntityGraph(attributePaths = ["roomType"]) fun findByPropertyIdOrderByRoomNumber(propertyId: UUID): List + @EntityGraph(attributePaths = ["roomType"]) fun findByIdAndPropertyId(id: UUID, propertyId: UUID): Room? fun existsByPropertyIdAndRoomNumber(propertyId: UUID, roomNumber: Int): Boolean