Change By: Brett Meyer (22/Feb/13 1:09 PM)
Description: When HHH- 7985 (NullPointer with JPA Criteria) 2951  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:

https://github.com/hibernate/hibernate-orm/commit/70454c9168129620089be47db0524652a4bd8c1e

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:

{noformat}
Caused by: java.lang.NoSuchMethodError: org.hibernate.criterion.Restrictions.eq(Ljava/lang/String;Ljava/lang/Object;)Lorg/hibernate/criterion/SimpleExpression;
{noformat}

and for Restrictions.ne:

{noformat}
java.lang.NoSuchMethodError: org.hibernate.criterion.Restrictions.ne(Ljava/lang/String;Ljava/lang/Object;)Lorg/hibernate/criterion/SimpleExpression;
{noformat}

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 HHH-
7985 2951  issue.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira