I have an object with a component map:
<class name="Article" table="articles">
...
<map name="i18nData" table="articles_i18n">
<key column="id" not-null="true"/>
<map-key column="language" type="string"/>
<composite-element class="Article$ArticleI18nData">
<property name="displayName" type="string"/>
</composite-element>
</map>
</class>
What would the HQL query look like to retrieve all the "article" objects ordered by the "displayName" property of the associated component displayed using the key, for example. 'EN'?
Thank you, Chris
Chris source
share