hibernate/hibernate-orm — pull request #515 by nykolaslima (2013-04-25 03:04:43+00:00)
Title: implementing equals and hashcode for Order class

When testing a Criteria to check if right order was added, it isn't possible because Order don't have hashcode and equals implementation.

This pull request fixes this issue.

`Mockito.verify(criteria).addOrder(Order.asc("name"));`