Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hi, am trying to build query which needs to order the results by priority. For example, i have the following query: FROM students WHERE name LIKE 'henry' OR address LIKE 'vancouver'. I want all students whose name is 'henry' AND whose address is 'vancouver' to appear first in the resultset. Is there a way to achieve this in hibernate?
Thanking you in advance
[b]Hibernate version:[/b]
[b]Mapping documents:[/b]
[b]Code between sessionFactory.openSession() and session.close():[/b]
[b]Full stack trace of any exception that occurs:[/b]
[b]Name and version of the database you are using:[/b]
[b]The generated SQL (show_sql=true):[/b]
[b]Debug level Hibernate log excerpt:[/b]
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html