Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Criteria addOrder

 
Kevin P Smith
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys

Quick question about Hibernate Criteria addOrder.

If you have an Object
ObjectOne which uses an obect within it ObjectTwo which in turn has a varible param1 how in Hib.Criteria can you order by param1.



I tried just doing the following:-



But all return the same error:
org.hibernate.QueryException: could not resolve property: param1 of: com.myproject.ObjectOne

PS: All have the correct tables & hibernate mapping files.
 
Kevin P Smith
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PPS...

Also tried

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic