hibernate - How set order by clause in HQL by run time? -


is there way set order clause in hql run time. i.e. select obj example1 order <here column name , asc or desc these 2 thing want set in run time>.

any proper solution...? have try adding 2 ? it's not working. replacing string work....but there other way hql....

the way concatenate appropriate field. if don't it, use the criteria api, designed generate queries dynamically.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -