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

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

java - stack overflow exception on xml transformation -