Delete amenities by unlinking from room types
All checks were successful
build-and-deploy / build-deploy (push) Successful in 1m54s

This commit is contained in:
androidlover5842
2026-01-28 20:25:58 +05:30
parent 7b72dd45e3
commit f8bdb8e759
2 changed files with 9 additions and 2 deletions

View File

@@ -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>
}