Isn't it just great working with open source stuff.. the big disadvantage is that you're posting the answers to your own threads..
I dumped the saveenvtlistener because it has too strange behavior when changing it to your own needs. the Interfaces for IPostUpdate, IPreUpdate, IPostInsert, IPreInsert eventlisteners where doing the trick for me On 12 mei, 08:57, Peter Derwa <[email protected]> wrote: > More info on what I'm doing within the > customSaveOrUpdateEventListener: > I'm doing a session.Get() on the same object to get the old version of > that object, and save them to a changelog object. > so first I do a get, I place all values of the previous state of that > object into a changelog object, > then I evict that previous state and do a performSaveOrUpdate. > > on the Session.SaveOrUpdate() (before the eventlistener is triggered) > I'm using a transaction. > > On 12 mei, 08:53,PeterDerwa<[email protected]> wrote: > > > > > Update: > > > I just added a PreUpdateEventListener, and the one to many object > > isn't even passing through the PreUpdateEventListener. > > while it is passing through the base.PerformSaveOrUpdate() in the > > CustomSaveOrUpdateEventListener.. > > any ideas? > > > On 11 mei, 07:57,PeterDerwa<[email protected]> wrote: > > > > Hi, > > > > When I'm trying to save a bag of one to many objects by saving the > > > parent instance, on the base.PerformSaveOrUpdate(event) it's not > > > saving my one to many object change. > > > It's giving the following message when passing the method: > > > > NHibernate.Event.Default.AbstractSaveEventListener - detached instance > > > of: ET.Deap.Common.Model.TestDataKba > > > > -- > > > 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 > > > athttp://groups.google.com/group/nhusers?hl=en. > > > -- > > 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 > > athttp://groups.google.com/group/nhusers?hl=en. > > -- > 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 > athttp://groups.google.com/group/nhusers?hl=en. -- 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.
