SyntaxFix
Write A Post
Hire A Developer
Questions
You need to create an alias for the mother.kind. You do this like so.
mother.kind
Criteria c = session.createCriteria(Cat.class); c.createAlias("mother.kind", "motherKind"); c.addOrder(Order.asc("motherKind.value")); return c.list();