Fast Object Database for Java - with JPA/JDO support

groupBy(grouping) - JPA AbstractQuery's method

Specify the expressions that are used to form groups over the query results. Replaces the previous specified grouping expressions, if any. If no grouping expressions are specified, any previously added grouping expressions are simply removed.
grouping - zero or more grouping expressions
the modified query
JPA 2.0