diff --git a/src/main/kotlin/com/android/trisolarisserver/models/booking/Guest.kt b/src/main/kotlin/com/android/trisolarisserver/models/booking/Guest.kt index 8c9cc1f..f5dd291 100644 --- a/src/main/kotlin/com/android/trisolarisserver/models/booking/Guest.kt +++ b/src/main/kotlin/com/android/trisolarisserver/models/booking/Guest.kt @@ -5,7 +5,6 @@ import com.android.trisolarisserver.models.property.AppUser import jakarta.persistence.* import java.time.OffsetDateTime import java.util.UUID -//TODO:store signature image of guest @Entity @Table( name = "guest", diff --git a/src/main/kotlin/com/android/trisolarisserver/repo/RatePlanRepo.kt b/src/main/kotlin/com/android/trisolarisserver/repo/RatePlanRepo.kt index 1c2dc39..f2ca323 100644 --- a/src/main/kotlin/com/android/trisolarisserver/repo/RatePlanRepo.kt +++ b/src/main/kotlin/com/android/trisolarisserver/repo/RatePlanRepo.kt @@ -2,9 +2,11 @@ package com.android.trisolarisserver.repo import com.android.trisolarisserver.models.room.RatePlan import org.springframework.data.jpa.repository.JpaRepository +import org.springframework.data.jpa.repository.EntityGraph import java.util.UUID interface RatePlanRepo : JpaRepository { + @EntityGraph(attributePaths = ["roomType"]) fun findByPropertyIdOrderByCode(propertyId: UUID): List fun findByIdAndPropertyId(id: UUID, propertyId: UUID): RatePlan? fun existsByPropertyIdAndCode(propertyId: UUID, code: String): Boolean