Added automatic paging of results for JPA to prevent running out of
memory when streaming large result sets.