@Repository public interface ScheduleOfRateRepository extends org.springframework.data.jpa.repository.JpaRepository<ScheduleOfRate,Long>
| Modifier and Type | Method and Description |
|---|---|
ScheduleOfRate |
findByCode(String sorCode) |
ScheduleOfRate |
findByCodeAndScheduleCategory_id(String sorCode,
Long categoryId) |
List<ScheduleOfRate> |
findByCodeAndScheduleOfCategoriesAndEstimateId(String code,
List<Long> ids,
Date estimateDate,
List<Long> estimateIds) |
List<ScheduleOfRate> |
findByCodeContainingIgnoreCaseAndScheduleCategory_IdInOrderByCode(String code,
List<Long> ids,
Date estimateDate) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAll@Query(value="from ScheduleOfRate as sch inner join fetch sch.sorRates as rates inner join fetch sch.uom as uom inner join fetch sch.scheduleCategory as categories where (upper(sch.code) like concat (\'%\', :code, \'%\') or upper(sch.description) like concat (\'%\', :code, \'%\')) and sch.scheduleCategory.id in :ids and ((:estimateDate between rates.validity.startDate and rates.validity.endDate ) or (rates.validity.startDate<=:estimateDate and rates.validity.endDate is null)) order by sch.code") List<ScheduleOfRate> findByCodeContainingIgnoreCaseAndScheduleCategory_IdInOrderByCode(@Param(value="code") String code, @Param(value="ids") List<Long> ids, @Param(value="estimateDate") Date estimateDate)
@Query(value="from ScheduleOfRate as sch inner join fetch sch.sorRates as rates inner join fetch sch.uom as uom inner join fetch sch.scheduleCategory as categories where (upper(sch.code) like concat (\'%\', :code, \'%\') or upper(sch.description) like concat (\'%\', :code, \'%\')) and sch.scheduleCategory.id in :ids and ((:estimateDate between rates.validity.startDate and rates.validity.endDate ) or (rates.validity.startDate<=:estimateDate and rates.validity.endDate is null)) and not exists (select act.schedule from Activity act where act.schedule.id = sch.id and act.abstractEstimate.id in(:estimateIds) and act.schedule is not null) order by sch.code") List<ScheduleOfRate> findByCodeAndScheduleOfCategoriesAndEstimateId(@Param(value="code") String code, @Param(value="ids") List<Long> ids, @Param(value="estimateDate") Date estimateDate, @Param(value="estimateIds") List<Long> estimateIds)
ScheduleOfRate findByCode(String sorCode)
ScheduleOfRate findByCodeAndScheduleCategory_id(String sorCode, Long categoryId)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.