1
하여 SQL GROUPBY 절과 주문 나는 항목 클래스가 있습니다.Mysema QueryDSL JPAQuery
select itemNo, upc, count(*) t from Items group by ITEM_NO, UPC order by t;
QueryDSL 샘플은 절에 의해 주문에 대한 수정이 필요합니다 :
QItems items = QItems.items;
query.from(items)
.groupBy(items.itemNo,items.upc)
.orderby(<Dont Know How to sort on count>).list(items.itemNo,items.upc,items.count());
가 제대로이 쿼리 초안을 작성하는 데 도움이 필요하세요?