addOrder « Criteria « JPA Q&A





1. Criteria addOrder problem    forum.hibernate.org

2. can you specify multiple Orders using addOrder for Criteria    forum.hibernate.org

That's odd. I've dont that successfully many times, although I always chain them up liKe: criteria.addOrder(Order.asc("columnA")).addOrder(Order.desc("columnB")); Don't know if that makes a difference. My advice: 1) turn on Hibernate logging and set it to debug level so you can see what it's doing. 2) Get jiggy with your debugger. You'll learn a lot more if you trace down into the hibernate ...