Delete room images when deleting room
All checks were successful
build-and-deploy / build-deploy (push) Successful in 32s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 32s
This commit is contained in:
@@ -75,4 +75,11 @@ interface RoomStayRepo : JpaRepository<RoomStay, UUID> {
|
||||
order by r.roomNumber
|
||||
""")
|
||||
fun findActiveByPropertyIdWithDetails(@Param("propertyId") propertyId: UUID): List<RoomStay>
|
||||
|
||||
@Query("""
|
||||
select case when count(rs) > 0 then true else false end
|
||||
from RoomStay rs
|
||||
where rs.room.id = :roomId
|
||||
""")
|
||||
fun existsByRoomId(@Param("roomId") roomId: UUID): Boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user