Is there are way to scroll results with JPA/hibernate?
问题 I found some hint in Toplink Query query = em.createQuery("SELECT e FROM Employee e ORDER BY e.lastName ASC, e.firstName ASC"); query.setHint("eclipselink.cursor.scrollable", true); ScrollableCursor scrollableCursor = (ScrollableCursor)query.getSingleResult(); List<Employee> emps = scrollableCursor.next(10); is there are jpa/hibernate alternative? 回答1: To my knowledge, there is nothing standard in JPA for that. With Hibernate, the closest alternative I'm aware of would be the Query /