Interface RosterConstraintConfigurationRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<RosterConstraintConfiguration,Long>,org.springframework.data.jpa.repository.JpaRepository<RosterConstraintConfiguration,Long>,org.springframework.data.repository.PagingAndSortingRepository<RosterConstraintConfiguration,Long>,org.springframework.data.repository.query.QueryByExampleExecutor<RosterConstraintConfiguration>,org.springframework.data.repository.Repository<RosterConstraintConfiguration,Long>
@Repository public interface RosterConstraintConfigurationRepository extends org.springframework.data.jpa.repository.JpaRepository<RosterConstraintConfiguration,Long>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteForTenant(Integer tenantId)Optional<RosterConstraintConfiguration>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 rc from RosterConstraintConfiguration rc where rc.tenantId = :tenantId") Optional<RosterConstraintConfiguration> findByTenantId(@Param("tenantId") Integer tenantId)
-
deleteForTenant
@Modifying(flushAutomatically=true, clearAutomatically=true) @Query("delete from RosterConstraintConfiguration rc where rc.tenantId = :tenantId") void deleteForTenant(@Param("tenantId") Integer tenantId)
-
-