Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
3.2.1GA
Name and version of the database you are using:
MySQL 5.0.27
Problem
Unlike Restrictions, Order.asc(String propertyName) and Order.desc(String propertyName) only seem to be able to process one property level. For instance, where criteria.add(Restrictions.like("property.subproperty", "%foo%") works fine, criteria.addOrder(Order.asc("property.subproperty")) throws an "org.hibernate.QueryException: could not resolve property: ...".
One, where would I report this as a feature request? Two, is there a workaround without resorting to using a Query? (session.createQuery("from Table t order by t.property.subproperty") does work just fine).
Thanks,
Derek