[hibernate-issues] [Hibernate-JIRA] Created: (EJB-323) Lack of JPQL support for boolean literals
Bob Tiernay (JIRA)
noreply at atlassian.com
Sat Nov 17 09:40:21 EST 2007
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_langref_lit
"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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list