When I write a HQL query
Query q = session.createQuery(\"SELECT cat from Cat as cat ORDER BY cat.mother.kind.value\"); return q.list();
Eve
You can add join type as well:
Criteria c2 = c.createCriteria("mother", "mother", CriteriaSpecification.LEFT_JOIN); Criteria c3 = c2.createCriteria("kind", "kind", CriteriaSpecification.LEFT_JOIN);