EntiytManager's QueryImpl mishandles ordinal position of HQL-style positional
parameters
----------------------------------------------------------------------------------------
Key: HHH-4567
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4567
Project: Hibernate Core
Issue Type: Bug
Components: entity-manager
Affects Versions: 3.5.0-Beta-2, 3.5.0.Beta-1
Reporter: Steve Ebersole
Assignee: Steve Ebersole
Fix For: 3.5
Even though JPAQL does not allow such a syntax, HQL allow JDBC-style positional parameters
to be used (? as opposed to ?1 which JPA requires). Currently there is a bug in
org.hibernate.ejb.QueryImpl which mishandles the ordinal position for these parameters
causing them to be "off by one".
The symptom is an error like : java.lang.IllegalArgumentException: Unable to locate
parameter with position [1]
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira