JPQLQuery query = new JPAQuery(getEntityManager());
query.from(qTicket)
.where(qTicket.heliosContract.eq(heliosContract))
.groupBy(qTicket.state);
return query.map(qTicket.state, qTicket.count());JPQLQuery<Void> query = new JPAQuery<>(getEntityManager());
query.from(qTicket)
.where(qTicket.heliosContract.eq(heliosContract));
return query.transform(GroupBy.groupBy(qTicket.state), GroupBy.as(qTicket.count()));
Hi,
I think that ‘transform(GroupBy.groupBy(qTicket.state).as(qTicket.count()))’ should work.
Is it an issue in the documentation? Could you then open up an issue for that?
Br,
Ruben
--
You received this message because you are subscribed to the Google Groups "Querydsl" group.
To unsubscribe from this group and stop receiving emails from it, send an email to querydsl+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I think that ‘transform(GroupBy.groupBy(qTicket.state).as(qTicket.count()))’ should work.