From 40a09d1c8340d1e5c29ec9c93b8029a02ad219a6 Mon Sep 17 00:00:00 2001 From: androidlover5842 Date: Tue, 27 Jan 2026 03:05:59 +0530 Subject: [PATCH] Eagerly fetch room type aliases with rooms --- src/main/kotlin/com/android/trisolarisserver/repo/RoomRepo.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/android/trisolarisserver/repo/RoomRepo.kt b/src/main/kotlin/com/android/trisolarisserver/repo/RoomRepo.kt index 8069380..4d92812 100644 --- a/src/main/kotlin/com/android/trisolarisserver/repo/RoomRepo.kt +++ b/src/main/kotlin/com/android/trisolarisserver/repo/RoomRepo.kt @@ -10,10 +10,10 @@ import java.util.UUID interface RoomRepo : JpaRepository { - @EntityGraph(attributePaths = ["roomType"]) + @EntityGraph(attributePaths = ["roomType", "roomType.otaAliases"]) fun findByPropertyIdOrderByRoomNumber(propertyId: UUID): List - @EntityGraph(attributePaths = ["roomType"]) + @EntityGraph(attributePaths = ["roomType", "roomType.otaAliases"]) fun findByIdAndPropertyId(id: UUID, propertyId: UUID): Room? fun existsByPropertyIdAndRoomNumber(propertyId: UUID, roomNumber: Int): Boolean