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. |