I’d like to be able to paginate my database results with something like the CriteriaBuilder, but I need my results to be consistent as to a single point in time.
Is there an easy way to somehow paginate and keep the select within the same transaction/
Have you discarded to store the whole result set in memory using
ScrollableResult?Look here
DomainObject.createCriteria().scroll{}returns a ScrollableResult