@Repository public interface HeadOfDepartmentsRepository extends org.springframework.data.jpa.repository.JpaRepository<HeadOfDepartments,Long>
| Modifier and Type | Method and Description |
|---|---|
List<Long> |
getAllHodDepartmentIds(Long assignId) |
List<HeadOfDepartments> |
getAllHodDepartments(Long assignId) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAll@Query(value=" select HOD.hod.id from HeadOfDepartments HOD where HOD.assignment.id=:assignId and HOD.hod is not null") List<Long> getAllHodDepartmentIds(@Param(value="assignId") Long assignId)
@Query(value=" from HeadOfDepartments HOD where HOD.assignment.id=:assignId and HOD.hod is not null") List<HeadOfDepartments> getAllHodDepartments(@Param(value="assignId") Long assignId)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.