I can’t find a way to set “order-by” attribute for at set in Hibernate XML mapping, ex.:
<set name="childKonto" lazy="true" cascade="save-update,lock" inverse="true" order-by="nummer asc">
<key column="parent_konto_ident" not-null="false"/>
<one-to-many class="dk.kyborg.database.entities.kontoplan.Konto"/>
</set>
I can add it manually, then it’s removed when I generate the code again.