Make amenities global and super-admin managed
All checks were successful
build-and-deploy / build-deploy (push) Successful in 27s

This commit is contained in:
androidlover5842
2026-01-27 04:33:51 +05:30
parent c3ec6e8d4a
commit eb0b99f55a
5 changed files with 34 additions and 55 deletions

View File

@@ -5,9 +5,8 @@ import org.springframework.data.jpa.repository.JpaRepository
import java.util.UUID
interface RoomAmenityRepo : JpaRepository<RoomAmenity, UUID> {
fun findByIdAndPropertyId(id: UUID, propertyId: UUID): RoomAmenity?
fun findByPropertyIdOrderByName(propertyId: UUID): List<RoomAmenity>
fun findByPropertyIdAndIdIn(propertyId: UUID, ids: Set<UUID>): List<RoomAmenity>
fun existsByPropertyIdAndName(propertyId: UUID, name: String): Boolean
fun existsByPropertyIdAndNameAndIdNot(propertyId: UUID, name: String, id: UUID): Boolean
fun findAllByOrderByName(): List<RoomAmenity>
fun findByIdIn(ids: Set<UUID>): List<RoomAmenity>
fun existsByName(name: String): Boolean
fun existsByNameAndIdNot(name: String, id: UUID): Boolean
}