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

IllegalArgumentException Is Thrown When Use Positional Paremter in HQL Editor

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 4.0.x, 4.1.x
    • Component/s: hibernate
    • Labels:
      None
    • Steps to Reproduce:
      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.

      Description

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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                koen.aers Koen Aers
                Reporter:
                xsalefter xsa lefter
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: