我想在JPA中的@Query
注释中添加start和maxResults。
例如:
@Query(value = "Select * from agent_appointment where status in('CIN','CRTD') and start_time >= CURDATE()", nativeQuery = true)
List<AgentAppointment> getAppointmentAndCheckInList();
我希望此查询返回特定数量的结果,例如start和maxResults