To explain further, what I believe i'd currently have to do within my XML configiration is:
<mapping>
<class-a>classA</class-a>
<class-b>classA</class-b>
<field remove-orphans="true">
<a>collectionAField</a>
<b>collectionAField
</b>
</field>
<field remove-orphans="true">
<a>collectionBField
</a>
<b>collectionBField
</b>
</field>
</mapping>
To define the field mapping and remove-orphans for all collections of ClassA (and all it's sub classes) is tedious. It's also open to failure if new collections are added and the config here not updated.
Ideally, there would be a global configuration option for remove-orphans, where any collection will use the value of the global configuration, unless it's been overridden.
Something like the following would be easier, but it would still require me to update the mappings XML config whenever new subclasses of classA are added.
<mapping remove-orphans="true">
<class-a>classA</class-a>
<class-b>classA</class-b>
</mapping>
For all collections within ClassA when mapping to the same object, remove-orphans="true" will be used.
Thanks,
Ryan