@Repository public interface ChairPersonRepository extends org.springframework.data.jpa.repository.JpaRepository<ChairPerson,Long>
| Modifier and Type | Method and Description |
|---|---|
ChairPerson |
findActiveChairPerson() |
ChairPerson |
findActiveChairPersonAsOnDate() |
ChairPerson |
findActiveChairPersonByCurrentDate() |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAll@Query(value="select cp from ChairPerson cp where cp.active=true and ((cp.toDate is not null and current_date between cp.fromDate and cp.toDate) or (cp.toDate is null and cp.fromDate <= current_date))") ChairPerson findActiveChairPersonAsOnDate()
@Query(value="select cp from ChairPerson cp where cp.active=true ") ChairPerson findActiveChairPerson()
@Query(value="select cp from ChairPerson cp where cp.active=true and cp.fromDate = CURRENT_DATE() ") ChairPerson findActiveChairPersonByCurrentDate()
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.