Issue Type: Bug Bug
Affects Versions: 4.1.10
Assignee: Unassigned
Components: core
Created: 21/Feb/13 9:29 AM
Description:

When HHH-7985 (NullPointer with JPA Criteria) 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:

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

and for Restrictions.ne:

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

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 issue.

Environment: Linux (opensuse)

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
Project: Hibernate ORM
Labels: criteria core query
Priority: Blocker Blocker
Reporter: Matt Todd
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