Query pagination support for the JPA and File stores.