java - Issue when using ORDER BY clause in criteria builder -
we add order clause in criteria builder bellow.
criteriaquery.orderby(criteriabuilder.asc(request.get("name")), criteriabuilder.asc(type.get("val")));
when see query looks like
order p.named.val
but expect
order p.name,d.val
in actual result comma(,) missing in between p.name , d.val.
please suggest me whey comma not there?
we use javax criteriabuilder.
Comments
Post a Comment