Hi,
I am trying to order a bag by a column of an inherited class but I get a failure during the collection initialisation stating that the column cannot be found.
So, let's say I have a base class called Person and a subclass called Policeman something like this (simplified mapping of course and not politically correct!):
Code:
<class name="Person">
<property name="Name"/>
<joined-subclass name="Policeman">
<property name="Rank"/>
</joined-subclass>
</class>
and then I have a Station class:
Code:
<class name="Station">
<bag name="Policemen" order-by="Name">
<one-to-many class="Policeman"/>
</bag>
</class>
It doesn't like the fact that I am trying to order by a column in the inherited class...how should I be doing this?
Cheers,
Jason