Dear ladies and sirs.
Suppose I wish to inherit PersistentGenericBag, so that the actual type of my collection property is my custom type, which derives from PersistentGenericBag.
I see two possible ways to achieve this:
- Introduce a new XML keyword, like mybag and somehow register my collection type with NHibernate to associated it with the mybag keyword.
- Override the default logic of associating a collection type with an XML keyword to let NHibernate associated my custom collection type with the well known bag XML keyword.
I am not sure if either is possible, so I would like to get any more information on the subject.
Thanks.