From 1082126f866f8c695c6c1a64b8de33fc3086f7d8 Mon Sep 17 00:00:00 2001 From: androidlover5842 Date: Tue, 27 Jan 2026 02:54:48 +0530 Subject: [PATCH] Eagerly fetch room type aliases for list --- .../kotlin/com/android/trisolarisserver/repo/RoomTypeRepo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/android/trisolarisserver/repo/RoomTypeRepo.kt b/src/main/kotlin/com/android/trisolarisserver/repo/RoomTypeRepo.kt index 6729b73..b99de4d 100644 --- a/src/main/kotlin/com/android/trisolarisserver/repo/RoomTypeRepo.kt +++ b/src/main/kotlin/com/android/trisolarisserver/repo/RoomTypeRepo.kt @@ -8,7 +8,7 @@ import java.util.UUID interface RoomTypeRepo : JpaRepository { fun findByIdAndPropertyId(id: UUID, propertyId: UUID): RoomType? fun findByPropertyIdAndCodeIgnoreCase(propertyId: UUID, code: String): RoomType? - @EntityGraph(attributePaths = ["property"]) + @EntityGraph(attributePaths = ["property", "otaAliases"]) fun findByPropertyIdOrderByCode(propertyId: UUID): List fun existsByPropertyIdAndCode(propertyId: UUID, code: String): Boolean fun existsByPropertyIdAndCodeAndIdNot(propertyId: UUID, code: String, id: UUID): Boolean