You can do UnionSubClass mapping. Unfortunately, it is not supported in Fluent.
The display will look something like this:
<class name="IWhatever" abstract="true">
<id name="Id">
</id>
<union-subclass name="Apple">
<property name="Bla" type="int"/>
</union-subclass>
<union-subclass name="Orange">
<property name="Bla" type="int"/>
</union-subclass>
</class>
Pedro source
share