...
In the past, WeirType could contain the following strings:
- simple_weir
- river_weir
- advanced_river_weir
We want NHibernate to use this property to decide which subclass to create, and we want to map both 'river_weir' and 'advanced_river_weir' to the RiverWeir class.
...
Note that I have changed the discriminator-value of both subclasses and also in the discriminator formula, to indicate you can choose any.
For source code: https://repos.deltares.nl/repos/delft-tools/trunk/shared/NHibernateBackwardsCompatibility