Community
Participate
Working Groups
Build Identifier: 2.3.0 Many UIs need the ability to get an estimate of the overall size of a domain over which a query ranges so that paging may be implemented. Consequently it is often necessary in a JPA context to be able to get the estimated domain size for any JPA query. Usually one does this with a query that uses the COUNT() operator. There is, however, no reliable way to translate an arbitrary JPQL SELECT query into its SELECT COUNT(x) equivalent. James Sutherland has proposed adding a getCount() method to JPAQuery that would produce a count of entities matching an arbitrary JPAQuery's criteria. Reproducible: Always
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink