@Repository public interface SpotRepository extends org.springframework.data.jpa.repository.JpaRepository<Spot,Long>
| Modifier and Type | Method and Description |
|---|---|
void |
deleteForTenant(Integer tenantId) |
List<Spot> |
findAllByTenantId(Integer tenantId,
org.springframework.data.domain.Pageable pageable) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushfindAll@Query(value="select s from Spot s where s.tenantId = :tenantId order by LOWER(s.name)") List<Spot> findAllByTenantId(@Param(value="tenantId") Integer tenantId, org.springframework.data.domain.Pageable pageable)
@Modifying(flushAutomatically=true,
clearAutomatically=true)
@Query(value="delete from Spot s where s.tenantId = :tenantId")
void deleteForTenant(@Param(value="tenantId")
Integer tenantId)
Copyright © 2017–2021 JBoss by Red Hat. All rights reserved.