public class SqlGroupProjection extends QueryProjection
Native SQL expression the results are grouped by, created by the group by clause of a sqlGroupProjection
in a criteria query. It is not selected: the columns of the sqlGroupProjection are SqlProjections.
In the SQL, {alias} stands for the table alias of the queried entity.
| Constructor and description |
|---|
SqlGroupProjection(java.lang.String sql) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public java.lang.String |
getSql()Returns the SQL expression the results are grouped by. |
|
public static java.util.List<SqlGroupProjection> |
of(java.lang.String groupBy)Splits the group by clause of a sqlGroupProjection, a single expression or a comma separated list of
them, into one projection per expression. |
Returns the SQL expression the results are grouped by.
Splits the group by clause of a sqlGroupProjection, a single expression or a comma separated list of
them, into one projection per expression.