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