@Repository public interface CFinancialYearRepository extends org.springframework.data.jpa.repository.JpaRepository<CFinancialYear,Long>
| Modifier and Type | Method and Description |
|---|---|
List<CFinancialYear> |
findByFinancialYearRange(String finYearRange) |
CFinancialYear |
findByFinYearRange(String finYearRange) |
CFiscalPeriod |
findByFiscalName(String name) |
List<CFinancialYear> |
findByIdIn(List<Long> financialYearList) |
List<CFinancialYear> |
findByIsClosedFalseOrderByFinYearRangeDesc() |
CFinancialYear |
getActiveFinancialYearByDate(Date givenDate) |
List<CFinancialYear> |
getAllFinancialYears() |
CFinancialYear |
getFinancialYearByDate(Date givenDate) |
List<CFinancialYear> |
getFinYearLastDate() |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAll@Query(value="from CFinancialYear where endingDate > current_date order by financialyear asc") List<CFinancialYear> getAllFinancialYears()
CFinancialYear findByFinYearRange(String finYearRange)
@Query(value="from CFinancialYear where finYearRange=:finYearRange order by id desc") List<CFinancialYear> findByFinancialYearRange(@Param(value="finYearRange") String finYearRange)
@Query(value="from CFinancialYear order by id desc") List<CFinancialYear> getFinYearLastDate()
@Query(value="from CFiscalPeriod where name=:name order by id desc") CFiscalPeriod findByFiscalName(@Param(value="name") String name)
@Query(value="from CFinancialYear cfinancialyear where cfinancialyear.startingDate <=:givenDate and cfinancialyear.endingDate >=:givenDate and cfinancialyear.isActiveForPosting=true") CFinancialYear getActiveFinancialYearByDate(@Param(value="givenDate") Date givenDate)
List<CFinancialYear> findByIsClosedFalseOrderByFinYearRangeDesc()
List<CFinancialYear> findByIdIn(List<Long> financialYearList)
@Query(value="from CFinancialYear cfinancialyear where cfinancialyear.startingDate <=:givenDate and cfinancialyear.endingDate >=:givenDate ") CFinancialYear getFinancialYearByDate(@Param(value="givenDate") Date givenDate)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.