I have read this to late... but I had this problem before. The error is to make this work with NH mapping resp. ActiveRecord attributes. From the models POV, the update is just fine, since you want to save an object's change to the database. The auditing is part of the database, not of the object model. If it was an object model's concern, you originally had to craft your model to handle this requirement.
My solution was going with plain vanilla ActiveRecord and define INSTEADOF triggers on the database to do the auditing. Another possible solution would be using AutoAudit (http://autoaudit.codeplex.com/ ). 2009/4/18 Fregas <[email protected]> > - I needed to do all inserts--no updates on every save for auditing > and logging. I tried replicate(), i tried stateless session. I > couldn't get it to cascade save the entire object model but also to do > inserts and not do updates. I guess what i was trying to do was very > much "outside the box". > -Markus --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
