Home » Search

About multiselect

11-13 of 13Refresh
Forum
4

Multi selection and distinct in a criteria query

.multiselect(...) and nothing like builder.distinct(selection) so that I could do something like criteria.multiselect(builder.distinct($1), $2)... ?? Alex distinct is a method of CriteriaQuery. There are some
Issue
2

Alias not used in ORDER BY

Hi, I am doing something simple like final Root from = criteria.from(T.class) final Path path = from.get("someStringProperty") final Expression upperPath = builder.upper((Expression) path); upperPath.alias("TEST"); criteria.multiselect(from, path); criteria.orderBy
Issue
2

Weird issue with variable naming

.multiselect(from, join2.get("name"));   cq.where(cb.equal(join2.get("name"), cb.literal("TEST")));   cq