Hibernate Offset Pagination Limits with setFirstResult and setMaxResults
Where offset-based pagination stops scaling Hibernate ORM exposes pagination through setFirstResult() and setMaxResults() on Query and TypedQuery . The API is uniform, but the behavior behind it is not: whether the offset becomes SQL LIMIT / OFFSET or the dialect equivalent, or is resolved by skipping rows after retrieval, depends on the dialect and on how t