Uploaded image for project: 'Hibernate ORM'
  1. HHH-10405

<return> elements of <sql-query> are not handled properly when building metadata

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.6
    • Fix Version/s: 5.0.7
    • Component/s: hibernate-core
    • Labels:
      None

      Description

      Hibernate mappings containing native query definitions like the one below are not handled properly

      	<sql-query name="myquery">
      		<synchronize table="mytable" />
      		<return 
                             alias="e"
                             class="org.some.class.Name"
      		/>
      		<![CDATA[from elephant as {e} where {e.age} > 50]]>
      	</sql-query>
      

      The same problem exists for the <return-join> and <load-collection> elements.

      The attached archive contains a project demonstrating the problem.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              koen.aers Koen Aers
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: