@Repository public interface MutationFeeRepository extends org.springframework.data.jpa.repository.JpaRepository<MutationFeeDetails,Long>
| Modifier and Type | Method and Description |
|---|---|
List<MutationFeeDetails> |
findBySlabNames(String slabName) |
List<String> |
findIfSlabNameExists(String slabName) |
Date |
findLatestToDateForSlabName(String slabName) |
BigDecimal |
findLowLimitForHighLimitNullValue() |
Date |
findToDateBySlabName(String slabName) |
MutationFeeDetails |
getAllDetailsById(Long id) |
List<MutationFeeDetails> |
getDistinctSlabNamesList() |
BigDecimal |
maxByHighLimit() |
List<MutationFeeDetails> |
selectAllOrderBySlabName() |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAll@Query(value="select max(highLimit) from MutationFeeDetails where toDate>now()") BigDecimal maxByHighLimit()
@Query(value="select lowLimit from MutationFeeDetails where highLimit is null and toDate > now()") BigDecimal findLowLimitForHighLimitNullValue()
@Query(value="select max(mfd.toDate) from MutationFeeDetails mfd where mfd.slabName=:slabName ") Date findToDateBySlabName(@Param(value="slabName") String slabName)
@Query(value="select mfd1.slabName from MutationFeeDetails mfd1 where mfd1.slabName=:slabName") List<String> findIfSlabNameExists(@Param(value="slabName") String slabName)
@Query(value="select max(mfd1.toDate) from MutationFeeDetails mfd1 where mfd1.slabName=:slabName") Date findLatestToDateForSlabName(@Param(value="slabName") String slabName)
@Query(value="select distinct on(slab_name) * from egpt_mutation_fee_details order by slab_name ",
nativeQuery=true)
List<MutationFeeDetails> getDistinctSlabNamesList()
@Query(value="select md from MutationFeeDetails md where md.slabName=:slabName") List<MutationFeeDetails> findBySlabNames(@Param(value="slabName") String slabName)
@Query(value="select mfd2 from MutationFeeDetails mfd2 where mfd2.id=:id") MutationFeeDetails getAllDetailsById(@Param(value="id") Long id)
@Query(value="select mfd3 from MutationFeeDetails mfd3 order by mfd3.lowLimit asc") List<MutationFeeDetails> selectAllOrderBySlabName()
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.