public interface EmployeeViewRepository extends org.springframework.data.repository.Repository<EmployeeView,Long>
| Modifier and Type | Method and Description |
|---|---|
EmployeeView |
findByAssignment_Id(Long id) |
List<EmployeeView> |
findByUserNameLikeOrCodeLikeOrPosition_NameLike(String userName,
String code,
String positionName,
Date currentDate) |
EmployeeView findByAssignment_Id(Long id)
@Query(value="select empview from EmployeeView empview where upper(name) like :userName or upper(code) like :code or upper(position.name) like :positionName and :currentDate between fromDate and toDate") List<EmployeeView> findByUserNameLikeOrCodeLikeOrPosition_NameLike(@Param(value="userName") String userName, @Param(value="code") String code, @Param(value="positionName") String positionName, @Param(value="currentDate") Date currentDate)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.