Hi Is this suppose to work?
Entity ent=[...]; Entity entClone =ent.DeepCloneOfAggregate(); ... session.Lock(ent, LockMode.None); session.Merge(entClone); <--has not been changed Assert.IsFalse(session.IsDirty()); It works if "ent" does not have any collection. If it has, the session becomes dirty. If "ent" is not versioned/has optimistic lock, nothing will be persisted. However, because entity is considered dirty, if flushing this session, "ent" will be persisted to the db with a new version number even though no data has been changed. Is this by design or is this a bug that I should JIRA this? /Roger --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
