Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-5405

HHH-5727 : Collection member declaration not handling optional AS in HQL.

    XMLWordPrintable

    Details

    • Affects:
      Release Notes
    • Release Notes Text:
      Hide
      According to the jpa persistence specification, the <code>AS</code> keyword is optional for collection declarations, such as the following:
      collection_member_declaration ::=
      IN (collection_valued_path_expression) [AS] identification_variable

      A HQL/JPQA such as the one below syntax caused a parser exception:
      SELECT o FROM EntityBean AS o, IN (o.items) AS l WHERE l.itemValue = '1'

      This occurred because Hibernate did not implement the <code>AS</code> keyword. Hibernate now follows the specification in this area, and allows the optional keyword.
      Show
      According to the jpa persistence specification, the <code>AS</code> keyword is optional for collection declarations, such as the following: collection_member_declaration ::= IN (collection_valued_path_expression) [AS] identification_variable A HQL/JPQA such as the one below syntax caused a parser exception: SELECT o FROM EntityBean AS o, IN (o.items) AS l WHERE l.itemValue = '1' This occurred because Hibernate did not implement the <code>AS</code> keyword. Hibernate now follows the specification in this area, and allows the optional keyword.
    • Release Notes Docs Status:
      Documented as Resolved Issue

      Description

      Backport of Hibernate issue http://opensource.atlassian.com/projects/hibernate/browse/HHH-5727

      Workaround: Do not use the option AS, only use the identifier in he HQL.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                stliu Strong Liu
                Reporter:
                dstephan David Stephan
                Writer:
                Misty Stanley-Jones
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: