Hi everyone,
I have an object with a map of components:
<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>
How would a HQL query look like to retrieve all "article" objects ordered by the 'displayName' property of the mapped component, mapped with a key for e.g. 'EN'?
thanks, chris