When was fixed, the return types for the org.hibernate.criterion.Restrictions methods Restrictions.ne and Restrictions.eq were changed from SimpleExpression to Criterion. See the git change log here:
Replacing the 4.1.9 build for the 4.1.10 build causes the following runtime exception when either of these Restrictions methods are invoked:
and for Restrictions.ne:
As the version number was effectively upgraded by only a minor point release, it could be reasonably expected that this type of change would not have occurred. Would it be possible to confirm that this api breaking change was expected as part of this release and was the only possible solution to the issue.
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
Hibernate version 4.1.10