[jbosstools-issues] [JBoss JIRA] (JBIDE-12825) IllegalArgumentException Is Thrown When Use Positional Paremter in HQL Editor

xsa lefter (JIRA) jira-events at lists.jboss.org
Wed Nov 28 08:55:21 EST 2012


    [ https://issues.jboss.org/browse/JBIDE-12825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12737714#comment-12737714 ] 

xsa lefter commented on JBIDE-12825:
------------------------------------

@jpeterka I think " .... :? ", is invalid query. AFAIK Supported positional parameter should be
- " .... ? " (JDBC style. Deprecated in hibernate 4.1 https://hibernate.onjira.com/browse/HHH-7023)
- " .... ?1 " (JPA)
- " .... :namedParameter " (JPA)

And if I see in the screenshot, the errors is QuerySyntaxException, Not IllegalArgumentException, which is expected result from invalid query declaration. 

However, thanks for re-opening the issue. I'm not sure an user like me allowed to reopened an issue if project leader already mark it as "rejected".
                
> IllegalArgumentException Is Thrown When Use Positional Paremter in HQL Editor
> -----------------------------------------------------------------------------
>
>                 Key: JBIDE-12825
>                 URL: https://issues.jboss.org/browse/JBIDE-12825
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: hibernate
>         Environment: Eclipse: Indigo Service Release 2
> Hibernate Tools: 3.4.0.v20120307-2104-H60-Beta1
> OS: Windows 7
>            Reporter: xsa lefter
>            Assignee: Koen Aers
>             Fix For: 4.1.x, 4.0.x
>
>         Attachments: hql-positional-parameter.png
>
>
> When use HQL Editor, "IllegalArgumentException: no positional parameters in query" is thrown when use positional parameter. Example is desribed in "Steps to Reproduce" section. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list