Does Hibernate paginate ROLLUP results before or after aggregation?
Assume Hibernate 6.x with a PostgreSQL dialect. A query combines GROUP BY ROLLUP with setFirstResult and setMaxResults to page a large aggregated result set. The goal is to determine whether Hibernate applies LIMIT and OFFSET to the final rollup rows or to the underlying pre-aggregation rows, since these produce different pages when many input rows collapse