@Repository public interface MarriageRegistrationReportsRepository extends org.springframework.data.jpa.repository.JpaRepository<MarriageRegistration,Long>
| Modifier and Type | Method and Description |
|---|---|
String[] |
getHusbandCountAgeWise(int year) |
String[] |
getWifeCountAgeWise(int year) |
String[] |
searchMarriageRegistrationsByYear(int year) |
String[] |
searchMarriageRegistrationsByYearAndAct(int year,
Long act) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAll@Query(value="select ap.ageInYearsAsOnMarriage , count(*) from MarriageRegistration rg, MrApplicant ap where rg.husband=ap.id and rg.status.code=\'APPROVED\' and YEAR(rg.applicationDate)=:year group by ap.ageInYearsAsOnMarriage order by ap.ageInYearsAsOnMarriage") String[] getHusbandCountAgeWise(@Param(value="year") int year)
@Query(value="select ap.ageInYearsAsOnMarriage, count(*) from MarriageRegistration rg, MrApplicant ap where rg.wife=ap.id and rg.status.code=\'APPROVED\' and YEAR(rg.applicationDate)=:year group by ap.ageInYearsAsOnMarriage order by ap.ageInYearsAsOnMarriage") String[] getWifeCountAgeWise(@Param(value="year") int year)
@Query(value="select MONTH(marriageRegn.applicationDate), count(*) from MarriageRegistration as marriageRegn, MarriageAct as act, EgwStatus as status where act.id = marriageRegn.marriageAct and act.id=:act and YEAR(marriageRegn.applicationDate)=:year and marriageRegn.status = status.id and status.code in(\'APPROVED\') group by MONTH(marriageRegn.applicationDate)") String[] searchMarriageRegistrationsByYearAndAct(@Param(value="year") int year, @Param(value="act") Long act)
@Query(value="select act.name, count(*) from MarriageRegistration as marriageRegn, MarriageAct as act, EgwStatus as status where act.id = marriageRegn.marriageAct and marriageRegn.status = status.id and status.code in(\'APPROVED\') and YEAR(marriageRegn.applicationDate)=:year group by act.name") String[] searchMarriageRegistrationsByYear(@Param(value="year") int year)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.