[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2534) better error message for illegal 'collection dereference' in HQL query

Steve Ebersole (JIRA) noreply at atlassian.com
Thu Mar 29 15:09:04 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_26599 ] 

Steve Ebersole commented on HHH-2534:
-------------------------------------

Actually just found out that this code is no longer really working.  Somehow the regression tests (I thought) I had added are no longer there.  So add tests for this as well.

> better error message for illegal 'collection dereference' in HQL query
> ----------------------------------------------------------------------
>
>                 Key: HHH-2534
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2534
>             Project: Hibernate3
>          Issue Type: Improvement
>          Components: query-hql
>            Reporter: Steve Ebersole
>            Assignee: Steve Ebersole
>            Priority: Minor
>             Fix For: 3.2.3
>
>
> Currently, when a user dereferences a collection improperly in an HQL query, a sorta cryptic error message is given which is a hold-over from the classic parser days (kept for regression testing in HQLTest).  The error just says "illegal syntax near collection: ${propertyName}".  
> Use a delegate in DotNode to allow a better error message by default, but for HQLTest to plugin a "classic" style error message generator.

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