Community
Participate
Working Groups
If a ReportQuery is constructed on which setMaxRows is invoked, and if this ReportQuery is used as a subquery in a ReadAllQuery using Expression.in(), then the LIMIT clause is missing on PostgreSQL. If setMaxRows is invoked on the surrounding ReadAllQuery, the LIMIT clause is present, but this is obviously not a functioning workaround.
Setting target and priority. See the following page for the meanings of these fields: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
SetMaxRows is not intended to be used for subqueries, and is only intended to be used to limit the results for the outer most query. This is because the original implementation used JDBC to limit results; using LIMIT is only one implementation. While LIMIT makes it possible to do for PostgreSQL in a subquery, it would give different results on other platforms. Changing this to a feature as it is not a bug.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink