Hi,
I am having problems peristing an IList using the <list> mapping.
I am pretty sure my mappings are correct as I have already got an IDictionary persisting using <map>, so I have experience how collection mappings are defined.
I have used the debugger to step through the Nhibernate-1.0.2.0 code and the problem seems to be in
Code:
NHibernate.Impl.OnUpdateVisitor
in the method
Code:
protected override object ProcessCollection(object collection, PersistentCollectionType type)
line 42
Code:
if( collection is PersistentCollection )
Seems my IList collection should be getting replaced with the equivalent PersistentCollection type.
Originally I defined my collection as a
Code:
System.Collections.Generic.List<T>
, which I thought was the problem,
but then I tried redefining it as a
Code:
System.Collections.Arraylist
, which didn't work either.
I think it is a bug, does anyone know of a work around?
Thanks, Neil