/** * Create a new GroupByBuilder for the given key expression * * @param key * @return */ public static <K> GroupByBuilder<K> groupBy(Expression<K> key) { return new GroupByBuilder<K>(key); }
/** * Create a new GroupByBuilder for the given key expressions * * @param keys * @return */ public static GroupByBuilder<List<?>> groupBy(Expression<?>... keys) { return new GroupByBuilder<List<?>>(new QList(keys)); }