Delete amenities by unlinking from room types
All checks were successful
build-and-deploy / build-deploy (push) Successful in 1m54s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 1m54s
This commit is contained in:
@@ -14,4 +14,6 @@ interface RoomTypeRepo : JpaRepository<RoomType, UUID> {
|
||||
fun existsByPropertyIdAndCode(propertyId: UUID, code: String): Boolean
|
||||
fun existsByPropertyIdAndCodeAndIdNot(propertyId: UUID, code: String, id: UUID): Boolean
|
||||
fun existsByAmenitiesId(id: UUID): Boolean
|
||||
@EntityGraph(attributePaths = ["amenities"])
|
||||
fun findAllByAmenitiesId(id: UUID): List<RoomType>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user