[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5126?page=c...
]
Guido Müller commented on HHH-5126:
-----------------------------------
The error occurs e.g. in this Query:
@NamedQuery(name = ExportFormat.NQ_FIND_ALL_WITH_EXCEPTION, query = "SELECT e FROM
ExportFormat e WHERE e.oid NOT IN :oidList")
It works with this illegal syntax:
@NamedQuery(name = ExportFormat.NQ_FIND_ALL_WITH_EXCEPTION, query = "SELECT e FROM
ExportFormat e WHERE e.oid NOT IN (:oidList)")
JPA Query with InExpression and Collection_valued_input_parameter
Complains About Bad Syntax
--------------------------------------------------------------------------------------------
Key: HHH-5126
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5126
Project: Hibernate Core
Issue Type: Bug
Affects Versions: 3.5.1
Reporter: Guido Müller
Priority: Blocker
JPA 2.0 spec final chapter 4.6.9 In Expressions
In the spec there are 3 alternatives allowed for the query argument. For the 3rd
alternative there are no parenthesis allowed.
Hibernate seems to expect these illegal parenthesis.
The error occurs within a named query in an entity class.
--
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