Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-12825

IllegalArgumentException Is Thrown When Use Positional Paremter in HQL Editor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.0.x, 4.1.x
    • None
    • hibernate
    • None
    • Hide

      Precondition:
      Use "Hibernate" perspective in eclipse (with JBoss tool installed)

      Assuming all configuration is ok and we already have entity named Person:

      • Write this query is ok:
        select p from Person p where p.name = :name
      • But writing this query throw IllegalArgumentException:
        select p from Person p where p.name = :?1

      Note that screenshot and more explanation is available in related forum.

      Show
      Precondition: Use "Hibernate" perspective in eclipse (with JBoss tool installed) Assuming all configuration is ok and we already have entity named Person: Write this query is ok: select p from Person p where p.name = :name But writing this query throw IllegalArgumentException: select p from Person p where p.name = :?1 Note that screenshot and more explanation is available in related forum.
    • -

      When use HQL Editor, "IllegalArgumentException: no positional parameters in query" is thrown when use positional parameter. Example is desribed in "Steps to Reproduce" section.

              kaers@redhat.com Koen Aers
              xsalefter xsa lefter (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: