Interface RosterStateRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<RosterState,Long>,org.springframework.data.jpa.repository.JpaRepository<RosterState,Long>,org.springframework.data.repository.PagingAndSortingRepository<RosterState,Long>,org.springframework.data.repository.query.QueryByExampleExecutor<RosterState>,org.springframework.data.repository.Repository<RosterState,Long>
@Repository public interface RosterStateRepository extends org.springframework.data.jpa.repository.JpaRepository<RosterState,Long>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteForTenant(Integer tenantId)Optional<RosterState>findByTenantId(Integer tenantId)-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
-
-
-
-
Method Detail
-
findByTenantId
@Query("select distinct rs from RosterState rs where rs.tenantId = :tenantId") Optional<RosterState> findByTenantId(@Param("tenantId") Integer tenantId)
-
deleteForTenant
@Modifying(flushAutomatically=true, clearAutomatically=true) @Query("delete from RosterState rs where rs.tenantId = :tenantId") void deleteForTenant(@Param("tenantId") Integer tenantId)
-
-