ObjectDB ObjectDB

groupBy(grouping) - JPA Subquery's method

Method
javax.persistence.criteria.Subquery<T>
Subquery<T> groupBy(
  List<E> grouping
)

Specify the expressions that are used to form groups over the subquery results. Replaces the previous specified grouping expressions, if any. If no grouping expressions are specified, any previously added grouping expressions are simply removed. This method only overrides the return type of the corresponding AbstractQuery method.
Parameters:
grouping - list of zero or more grouping expressions
Returns:
the modified subquery
Since:
JPA 2.0