Can anyone suggest what I might be doing wrong here? I'm seeing SQL updates to an entity (and its joined-subclass entities, as its part of a hirerachy), when the only thing that's been changed is a child collection
I'm loading an entity from nHibernate. The entity is the root of an inheritance hierarchy, so a bunch of other bits are loaded in. The entity has a Version column set. I add some entities to a collection (mapped as a one-to-many to another table). And when calling Flush() on the NHibernate session suddenly it decides it needs to update the root entity, the related entity in the inheritance hierachy, *and* then insert the entities I added to the collection. I could understand if it was maybe just incrementing the Versioning column, but it's updating all the columns... I suspect I'm missing something fundamental here! Any tips would be much appreciated. James --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
