Community
Participate
Working Groups
Build Identifier: eclipselink-2.3.0.v20110604-r9504 Execute the following code and getGrouList() will return a null instead of an empty list as specified by the javadoc CriteriaQuery<String> cquery = qbuilder.createQuery(String.class); Root<Customer> customer = cquery.from(Customer.class); EntityType<Customer> Customer_ = customer.getModel(); EmbeddableType<Country> Country_ = mm.embeddable(Country.class); cquery.select(customer.get(Customer_.getSingularAttribute("country", Country.class)).get(Country_.getSingularAttribute("code", String.class))); List<Expression<?>> groupList = cquery.getGroupList(); if (groupList == null) { System.out.println("getGroupList returned null instead of empty list when no groupby expressions have been specified"); } Reproducible: Always
Updating target milestone.
Created attachment 226644 [details] proposed fix
Fix checked in - lazy initialization of groupBy Reviewed by Chris Delahunt Added test to JPA 2.1 Query test suite Tested with JPA LRG
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink