@Repository public interface ComplaintRouterRepository extends org.springframework.data.jpa.repository.JpaRepository<ComplaintRouter,Long>
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllComplaintRouter findByComplaintTypeAndBoundary(ComplaintType complaintType, org.egov.infra.admin.master.entity.Boundary location)
@Query(value="select cr from ComplaintRouter cr where cr.complaintType=:complaintType and cr.boundary is null") ComplaintRouter findByOnlyComplaintType(@Param(value="complaintType") ComplaintType complaintType)
ComplaintRouter findByBoundary(org.egov.infra.admin.master.entity.Boundary location)
@Query(value="select cr from ComplaintRouter cr where cr.boundary.parent is null") ComplaintRouter findGrievanceOfficer()
@Query(value="select cr from ComplaintRouter cr where cr.complaintType=:complaintType and cr.position=:position and cr.boundary=:boundary") ComplaintRouter findByComplaintTypeAndBoundaryAndPosition(@Param(value="complaintType") ComplaintType complaintType, @Param(value="boundary") org.egov.infra.admin.master.entity.Boundary boundary, @Param(value="position") org.egov.pims.commons.Position position)
@Query(value="select cr from ComplaintRouter cr where cr.complaintType=:complaintType and cr.position=:position and cr.boundary is null") ComplaintRouter findByComplaintTypeAndPosition(@Param(value="complaintType") ComplaintType complaintType, @Param(value="position") org.egov.pims.commons.Position position)
@Query(value="select cr from ComplaintRouter cr where cr.boundary=:boundary and cr.position=:position and cr.complaintType is null") ComplaintRouter findByBoundaryAndPosition(@Param(value="boundary") org.egov.infra.admin.master.entity.Boundary boundary, @Param(value="position") org.egov.pims.commons.Position position)
@Query(value="select cr from ComplaintRouter cr where cr.boundary.boundaryType.id=:boundaryTypeId ") List<ComplaintRouter> findRoutersByBoundaryType(@Param(value="boundaryTypeId") Long boundaryTypeId)
@Query(value="select cr from ComplaintRouter cr ") List<ComplaintRouter> findRoutersByAll()
@Query(value="select cr from ComplaintRouter cr where cr.boundary.boundaryType.id=:boundaryTypeId and cr.boundary.id=:boundaryId") List<ComplaintRouter> findRoutersByBoundaryAndBoundaryType(@Param(value="boundaryTypeId") Long boundaryTypeId, @Param(value="boundaryId") Long boundaryId)
@Query(value="select cr from ComplaintRouter cr where cr.complaintType.id=:complaintTypeId ") List<ComplaintRouter> findRoutersByComplaintType(@Param(value="complaintTypeId") Long complaintTypeId)
@Query(value="select cr from ComplaintRouter cr where cr.complaintType.id=:complaintTypeId and cr.boundary.boundaryType.id=:boundaryTypeId") List<ComplaintRouter> findRoutersByComplaintTypeAndBoundaryType(@Param(value="complaintTypeId") Long complaintTypeId, @Param(value="boundaryTypeId") Long boundaryTypeId)
@Query(value="select cr from ComplaintRouter cr where cr.complaintType.id=:complaintTypeId and cr.boundary.boundaryType.id=:boundaryTypeId and cr.boundary.id=:boundaryId") List<ComplaintRouter> findRoutersByComplaintTypeAndBoundaryTypeAndBoundary(@Param(value="complaintTypeId") Long complaintTypeId, @Param(value="boundaryTypeId") Long boundaryTypeId, @Param(value="boundaryId") Long boundaryId)
@Query(value="select cr from ComplaintRouter cr where cr.position.id=:positionId and cr.complaintType.id=:complaintTypeId and cr.boundary.boundaryType.id=:boundaryTypeId and cr.boundary.id=:boundaryId") List<ComplaintRouter> findRoutersByComplaintTypeAndBoundaryTypeAndBoundaryAndPosition(@Param(value="complaintTypeId") Long complaintTypeId, @Param(value="boundaryTypeId") Long boundaryTypeId, @Param(value="boundaryId") Long boundaryId, @Param(value="positionId") Long positionId)
@Query(value="select cr from ComplaintRouter cr where cr.position.id=:positionId and cr.complaintType.id=:complaintTypeId and cr.boundary.boundaryType.id=:boundaryTypeId ") List<ComplaintRouter> findRoutersByComplaintTypeAndBoundaryTypeAndPosition(@Param(value="complaintTypeId") Long complaintTypeId, @Param(value="boundaryTypeId") Long boundaryTypeId, @Param(value="positionId") Long positionId)
@Query(value="select cr from ComplaintRouter cr where cr.position.id=:positionId and cr.complaintType.id=:complaintTypeId ") List<ComplaintRouter> findRoutersByComplaintTypeAndPosition(@Param(value="complaintTypeId") Long complaintTypeId, @Param(value="positionId") Long positionId)
@Query(value="select cr from ComplaintRouter cr where cr.position.id=:positionId and cr.complaintType.id=:complaintTypeId and cr.boundary.id=:boundaryId") List<ComplaintRouter> findRoutersByComplaintTypeAndBoundaryAndPosition(@Param(value="complaintTypeId") Long complaintTypeId, @Param(value="boundaryId") Long boundaryId, @Param(value="positionId") Long positionId)
@Query(value="select cr from ComplaintRouter cr where cr.complaintType.id=:complaintTypeId and cr.boundary.id=:boundaryId") List<ComplaintRouter> findRoutersByComplaintTypeAndBoundary(@Param(value="complaintTypeId") Long complaintTypeId, @Param(value="boundaryId") Long boundaryId)
@Query(value="select cr from ComplaintRouter cr where cr.complaintType.id=:complaintTypeId and cr.boundary.boundaryType.id=:boundaryTypeId ") List<ComplaintRouter> findRoutersByComplaintTypeAndBoundaryTypecomplaintTypeId(@Param(value="complaintTypeId") Long complaintTypeId, @Param(value="boundaryTypeId") Long boundaryTypeId)
@Query(value="select cr from ComplaintRouter cr where cr.position.id=:positionId and cr.boundary.boundaryType.id=:boundaryTypeId and cr.boundary.id=:boundaryId") List<ComplaintRouter> findRoutersByBoundaryTypeAndBoundaryAndPosition(@Param(value="boundaryTypeId") Long boundaryTypeId, @Param(value="boundaryId") Long boundaryId, @Param(value="positionId") Long positionId)
@Query(value="select cr from ComplaintRouter cr where cr.position.id=:positionId and cr.boundary.boundaryType.id=:boundaryTypeId ") List<ComplaintRouter> findRoutersByBoundaryTypeAndPosition(@Param(value="boundaryTypeId") Long boundaryTypeId, @Param(value="positionId") Long positionId)
@Query(value="select cr from ComplaintRouter cr where cr.position.id=:positionId ") List<ComplaintRouter> findRoutersByPosition(@Param(value="positionId") Long positionId)
@Query(value="select cr from ComplaintRouter cr where cr.position.id=:positionId and cr.boundary.id=:boundaryId") List<ComplaintRouter> findRoutersByBoundaryAndPosition(@Param(value="boundaryId") Long boundaryId, @Param(value="positionId") Long positionId)
@Query(value="select cr from ComplaintRouter cr where cr.boundary.id=:boundaryId") List<ComplaintRouter> findRoutersByBoundary(@Param(value="boundaryId") Long boundaryId)
@Query(value="select cr from ComplaintRouter cr where cr.boundary.boundaryType.id=:boundaryTypeId and cr.boundary.id=:boundaryId") List<ComplaintRouter> findRoutersByBoundaryTypeAndBoundary(@Param(value="boundaryTypeId") Long boundaryTypeId, @Param(value="boundaryId") Long boundaryId)
@Query(value="select cr from ComplaintRouter cr where cr.boundary=:bndry and cr.complaintType is null") ComplaintRouter findByOnlyBoundary(@Param(value="bndry") org.egov.infra.admin.master.entity.Boundary bndry)
@Query(value="select cr from ComplaintRouter cr where cr.boundary.parent is null and cr.complaintType is null and cr.boundary.boundaryType.hierarchyType.name=:hierarchyType") ComplaintRouter findCityAdminGrievanceOfficer(@Param(value="hierarchyType") String hierarchyType)
@Query(value="select cr from ComplaintRouter cr where cr.complaintType in :complaintTypes and cr.boundary in :boundaries") List<ComplaintRouter> findRoutersByComplaintTypesBoundaries(@Param(value="complaintTypes") List<ComplaintType> complaintTypes, @Param(value="boundaries") List<org.egov.infra.admin.master.entity.Boundary> boundaries)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.