[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-354) property named "full" breaks HQL queries

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Mar 21 13:00:25 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HHH-354.
------------------------------


Closing stale resolved issues

> property named "full" breaks HQL queries
> ----------------------------------------
>
>                 Key: HHH-354
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-354
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.0 final
>         Environment: Hibernate 3.0, Oracle 9, JDK 1.5
>            Reporter: Tim McCune
>            Assignee: Joshua Davis
>            Priority: Minor
>             Fix For: 3.1 beta 1
>
>
> Hibernate doesn't seem to be able to parse an HQL query that references a property named "full".  I assume this is because "full" is a keyword in HQL, but the parser should be smart enough to realize that if "full" is preceded by a ".", then it's a property name.  For instance, the HQL query "select bar.foo from Bar bar where bar.full = true" causes a "QuerySyntaxError: unexpected AST node: ." at the index of the . in "bar.full"

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