Hi, I've got a project where i recently tried to set som properties to lazy="true" and type="StringClob". This works mostly fine, but when my object implements an interface where i use ILifeCycle some problems arise. Note that i override OnDelete, where i instead of deleting the item, mark it as Deleted in another property, then i try to update/merge the object in session.
So, basicly the flow is: 1. Get Object 2. Delete Object 3. ILifeCycle OnDelete trigges 4. Session.Update / Session.Merge and return LifecycleVeto.Veto 5. Exception is thrown, stating "not-null property references a null or transient value" So the problem seems to me is that the lazy loaded property does not get loaded, and when i do the Session.Update/Session.Merge the object remains null, and lazyloading is not performed on the property before the update is called. I know that lazy loading the property before updating the row causes extra DB roundtrips, but this has minimal effect on my application, as most data is commonly read, and rarely deleted. Anyone got any tips how i can proceed with this, or is this behavior of by-design? I use NHibernate 3.2 with Spring 1.3.2 btw. -- You received this message because you are subscribed to the Google Groups "nhusers" group. To view this discussion on the web visit https://groups.google.com/d/msg/nhusers/-/q1kEutBu-nIJ. 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.
