/** * Get List of employee objects by department ,designation and boundary ids * * @param deptId * @param desigId * @param boundaryId * @return List of employee objects */ public List<Employee> findByDepartmentDesignationAndBoundary( final Long deptId, final Long desigId, final Long boundaryId) { Set<Long> bndIds = new HashSet<Long>(); List<Boundary> boundaries = boundaryService.findActiveChildrenWithParent(boundaryId); boundaries.forEach((bndry) -> bndIds.add(bndry.getId())); return employeeRepository.findByDepartmentDesignationAndBoundary(deptId, desigId, bndIds); }