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

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -