Hi,
I am using criteria api for search functionality in my application. I am stuck due to some sorting issues.
I have a project object which has a collection of team members. Team members are assigned different roles like Architect, Lead, Programmer, etc and presence of any role is not mandatory. A project may or may not have team members.
In search results I am displaying the Architect's name (if any) along with other properties of project. Now I want to sort the result (list of project objects) on the basis of Architect's name.
I think I can achieve this through HQL but I would like to do this using criteria api. I'll appreciate any help.
thanks
rohit
|