> I have a rather large object hierarchy with collections, dictionaries, > many-to-one relationships, etc. When i get this hierarchy out of the > db using session.get() if you are using get() with this complex graph you are executing alot of queries. If you know you will be editing the object, use the multi- criteria to load the aggregate.
> I'd like every object re-inserted (not updated) as new records. This is for > logging/auditing purposes. I think you have to do this using event listeners to do this. if you have the option i would highly recommend storing the audit in a separate table. it makes working with the domain much easier as you do not need to filter out the "noise". On Apr 15, 4:03 pm, Fregas <fre...@gmail.com> wrote: > I'm rephrasing this question because I'm not sure I'm expressing this > correctly. > > I have a rather large object hierarchy with collections, dictionaries, > many-to-one relationships, etc. When i get this hierarchy out of the > db using session.get() and make modifications, when I send this back > to the database to save, I'd like every object re-inserted (not > updated) as new records. This is for logging/auditing purposes. The > root object has a version# so I want all related objects to relate > back to the newly inserted root and new records for all related > objects. > > Thanks, > Craig --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to nhusers@googlegroups.com To unsubscribe from this group, send email to nhusers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---