how to retrieve data from associated table in ascenting order using crietria
posted 4 years ago
I have two bean classes..
Now I want to retrieve the Subject for a particular student in ascending order using creitria query. For doing the same first I have to retrieve the student object from the database, now i want that after getting the student object if I perform student.getSubjects() I get the list of all the subjects that has been taken by the particular statment in ascending order of subject name.
Can somebody let me know how to write a creitria query for the same.