@Repository public interface PositionMasterRepository extends org.springframework.data.jpa.repository.JpaRepository<org.egov.pims.commons.Position,Long>
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllorg.egov.pims.commons.Position findByName(String name)
List<org.egov.pims.commons.Position> findByNameContainingIgnoreCase(String name)
@Query(value="select cr from Position cr ") List<org.egov.pims.commons.Position> findPositionByAll()
@Query(value="select cr from Position cr where cr.deptDesig.department.id=:departmentId and cr.deptDesig.designation.id=:designationId") List<org.egov.pims.commons.Position> findPositionBydepartmentAndDesignation(@Param(value="departmentId") Long departmentId, @Param(value="designationId") Long designationId)
@Query(value="select cr from Position cr where cr.deptDesig.department.id=:departmentId ") List<org.egov.pims.commons.Position> findPositionBydepartment(@Param(value="departmentId") Long departmentId)
@Query(value="select cr from Position cr where cr.deptDesig.designation.id=:designationId") List<org.egov.pims.commons.Position> findPositionByDesignation(@Param(value="designationId") Long designationId)
List<org.egov.pims.commons.Position> findByDeptDesig_Department_IdAndDeptDesig_Designation_IdAndNameContainingIgnoreCase(Long deptId, Long desigId, String name)
@Query(value="select count(*) from Position cr where cr.deptDesig.department.id=:departmentId and cr.deptDesig.designation.id=:designationId and cr.isPostOutsourced is true") Integer getTotalOutSourcedPostsByDepartmentAndDesignation(@Param(value="departmentId") Long departmentId, @Param(value="designationId") Long designationId)
@Query(value="select count(*) from Position cr where cr.deptDesig.department.id=:departmentId and cr.isPostOutsourced is true ") Integer getTotalOutSourcedPostsByDepartment(@Param(value="departmentId") Long departmentId)
@Query(value="select count(*) from Position cr where cr.deptDesig.designation.id=:designationId and cr.isPostOutsourced is true") Integer getTotalOutSourcedPostsByDesignation(@Param(value="designationId") Long designationId)
@Query(value="select count(*) from Position cr where cr.isPostOutsourced is true") Integer getTotalOutSourcedPosts()
@Query(value="select count(*) from Position cr where cr.deptDesig.department.id=:departmentId and cr.deptDesig.designation.id=:designationId ") Integer getTotalSanctionedPostsByDepartmentAndDesignation(@Param(value="departmentId") Long departmentId, @Param(value="designationId") Long designationId)
@Query(value="select count(*) from Position cr where cr.deptDesig.department.id=:departmentId ") Integer getTotalSanctionedPostsByDepartment(@Param(value="departmentId") Long departmentId)
@Query(value="select count(*) from Position cr where cr.deptDesig.designation.id=:designationId ") Integer getTotalSanctionedPostsByDesignation(@Param(value="designationId") Long designationId)
@Query(value="select count(*) from Position cr ") Integer getTotalSanctionedPosts()
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.