@Repository public interface DonationHeaderRepository extends org.springframework.data.jpa.repository.JpaRepository<DonationHeader,Long>
| Modifier and Type | Method and Description |
|---|---|
List<DonationHeader> |
findAllByCategory(ConnectionCategory category) |
List<DonationHeader> |
findAllByUsageType(UsageType usageType) |
List<DonationHeader> |
findByCategoryAndUsageType(ConnectionCategory category,
UsageType usageType) |
DonationHeader |
findByPropertyandCategoryAndUsageTypeAndPipeSize(PropertyType propertyType,
ConnectionCategory category,
UsageType usageType,
double pipeSize) |
List<DonationHeader> |
findDonationByPropertyAndCategoryAndUsageandMinPipeSizeAndMaxPipesize(PropertyType propertyType,
ConnectionCategory category,
UsageType usageType,
double minPipeSize,
double maxPipeSize) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllList<DonationHeader> findAllByCategory(ConnectionCategory category)
List<DonationHeader> findAllByUsageType(UsageType usageType)
List<DonationHeader> findByCategoryAndUsageType(ConnectionCategory category, UsageType usageType)
@Query(value="select dh from DonationHeader dh where dh.propertyType=:propertyType and dh.category=:category and usageType=:usageType and dh.minPipeSize.sizeInInch <=:pipeSize and dh.maxPipeSize.sizeInInch >=:pipeSize and dh.active=true") DonationHeader findByPropertyandCategoryAndUsageTypeAndPipeSize(@Param(value="propertyType") PropertyType propertyType, @Param(value="category") ConnectionCategory category, @Param(value="usageType") UsageType usageType, @Param(value="pipeSize") double pipeSize)
@Query(value="select dh from DonationHeader dh where dh.propertyType=:propertyType and dh.category=:category and dh.usageType=:usageType and ((dh.minPipeSize.sizeInInch <=:minPipeSize and dh.maxPipeSize.sizeInInch >=:minPipeSize) or (dh.minPipeSize.sizeInInch <=:maxPipeSize and dh.maxPipeSize.sizeInInch >=:maxPipeSize) or(dh.minPipeSize.sizeInInch >=:minPipeSize and dh.maxPipeSize.sizeInInch <=:maxPipeSize)) and dh.active=true") List<DonationHeader> findDonationByPropertyAndCategoryAndUsageandMinPipeSizeAndMaxPipesize(@Param(value="propertyType") PropertyType propertyType, @Param(value="category") ConnectionCategory category, @Param(value="usageType") UsageType usageType, @Param(value="minPipeSize") double minPipeSize, @Param(value="maxPipeSize") double maxPipeSize)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.