4 Replies Latest reply on Oct 9, 2012 7:34 PM by xsa lefter

    How To Use Positional Parameter in HQL Editor

    xsa lefter Newbie

      Hi all,


      I'm usually use named parameter for defining input parameter in JQPL with HQL editor. Now I'm trying to use positional parameter and looks like Jboss Tools / Hibernate Tools doesn't support this (or perhaps I'm going to wrong direction).


      This screenshots display when I use named parameter (as you may be see, the quey result is displayed on "Hibernate Query Result" tab):




      This screenshots display when I use positional parameter ("Hibernate Query Result" show illegalargumentexception no positional parameters in query):



      Note that I also trying to change the "name" column value from 0 to 1 (in the right panel). But it doesn't affect anything and throw same exception. My environment is:

      • Eclipse: Indigo Service Release 2
      • Hibernate Tools: 3.4.0.v20120307-2104-H60-Beta1 (which is included when I install JBoss Tools)


      Any suggestion / idea?


      Message was edited by: xsa lefter. Edit image.