Pagination limits and ordering guarantees in Hibernate Criteria API
When paginating results with Hibernate’s Criteria API using setFirstResult and setMaxResults , the goal is to retrieve a stable, non‑overlapping slice of data across multiple executions. However, without an explicit ORDER BY clause the database may return rows in arbitrary physical order, and fetch joins on collection associations can produce duplicate root