Hi,

maybe the non-generic collection implementations could be entirely
removed at some point.
Or the non-generic PersistentCollection implementations could be made
abstract and finally be implemented only by the generic versions. Then
it would not be necessary to duplicate the code as mentioned in the
TODO.

In both cases the non-generic SetType could use a
PersistentGenericSet<object>.


I must admit that I did not think about the consequences and I am not
aware about the details of the collection handling in NHibernate but
maybe these are options to be considered.



On 19 Dez. 2011, 19:45, "Alexander I. Zaytsev" <[email protected]>
wrote:
> I've found following code comment in PersistentGenericBag`1
>
> // TODO NH: find a way to writeonce (no duplicated code from PersistentBag)
>
> My suggestion is inverse inheritance hierarchy. In that way:
>
> class PersitentBag : PersistentGenericBag<object> { }
>
> What do you think about?

Reply via email to