[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
Thu Nov 22 18:47:21 EST 2012


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

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

Hi max,

Thanks for your reply. I will give you more case. I take persistence.xml from this project:
https://github.com/dynamicfinder/dynamicfinder/blob/master/src/test/resources/META-INF/persistence.xml

Although it configured to use h2 database, I could easily replace it in configuration by add connection to mysql database. Please see the image.

http://i45.tinypic.com/11b1yiu.png (I think attach the image directly would hurt readers, so I just put the URL)

As you can see, I choose hibernate version to 4. Database connection point to "dynamicfinder_api_dev". It's my sql connection. 

And when I'm trying the HQL editor, this is what happens:

This is what happen when I use positional parameter:
http://i48.tinypic.com/25upb43.png

And this is what happen when I use named parameter:
http://i49.tinypic.com/345h75w.png

However, I hope that I miss something, and if you have simple project that success with this, please show me so I can take a look whats wrong with my configuration.
                
> 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.0.0.CR1
>
>
> 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