I debugged this some more, and it does not make sense that this error
is thrown. Collection MetaPackages is a lazy loaded, and does not get
loaded during in the event listener. The only this, which when I
comment out makes this go away, is that during serialization proces, I
refer to MetaProject (a parent) for its name. That is it. It
collection of MetaPackages does not get touched at all. Is this a bug?

On Nov 24, 1:38 pm, epitka <[email protected]> wrote:
> Hi,
> I am getting this error when saving entity. This problem pops up only
> when I have a PreUpdateEventListener registered with session factory.
> In this event listener, I need to navigate the object graph, and it
> may or may not lazy load collections in the parent. I am doing some
> serialization of the object graph but there will be no changes to the
> state of the collections, they will just be loaded. Is there a
> workaround for the issue?
>
> collection [dnnSphere.Meta.Model.MetaProject.MetaPackages] was not
> processed by flush()
>
> [AssertionFailure: collection
> [dnnSphere.Meta.Model.MetaProject.MetaPackages] was not processed by
> flush()]
>    NHibernate.Engine.CollectionEntry.PostFlush(IPersistentCollection
> collection) +163
>    NHibernate.Event.Default.AbstractFlushingEventListener.PostFlush
> (ISessionImplementor session) +516
>    NHibernate.Event.Default.DefaultFlushEventListener.OnFlush
> (FlushEvent event) +112
>    NHibernate.Impl.SessionImpl.Flush() +296
>    NHibernate.Transaction.AdoTransaction.Commit() +197
>    dnnSphere.Meta.Persistence.GenericDao.Save(T entity) in C:\Software
> \SharpMod\trunk\src\Meta\dnnSphere.Meta\Persistence\GenericDao.cs:174

--

You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.


Reply via email to