]
Emmanuel Bernard commented on EJB-323:
--------------------------------------
fair enough, but open an issue in the Hibernate3 project, this is where it belongs.
Lack of JPQL support for boolean literals
-----------------------------------------
Key: EJB-323
URL:
http://opensource.atlassian.com/projects/hibernate/browse/EJB-323
Project: Hibernate Entity Manager
Issue Type: Bug
Affects Versions: 3.3.1.GA
Environment: Hibernate 3.3.1.GA / Oracle 10g
Reporter: Bob Tiernay
Priority: Minor
It appears as though Hibernate 3 does not support boolean literals in the select list as
required by the JPA spec:
http://e-docs.bea.com/kodo/docs41/full/html/ejb3_langref.html#ejb3_langre...
"The boolean literals are TRUE and FALSE. Although predefined reserved literals
appear in upper case, they are case insensitive"
Thus, JPQL queries such as:
"SELECT TRUE FROM Entity e"
Will not parse. A more realistic example is the following:
"SELECT NEW ValueClass(e.x, e.y, TRUE) FROM Entity e"
Which also does not parse.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: