The order by clause Use in HQL by R4R Team

The list returned by a query can be ordered by any property of a returned class or components:

from DomesticStudent student order by student.name asc, student.weight desc, student.birthdate

The optional asc or desc indicate ascending or descending order respectively.
Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!