| Consider the following object graph.  
 A --> *B  --> *C  --> *D
 
 ( ie A has parent/child to many Bs, which has parent/child to many Cs, etc.)
 
 All are mapped with cascade "all-delete-orphan"
 
 If I do the following code:
 
 a.B_Collection.Remove(b);
 b.A = null;
 
 ( note that this orphans the entire subtree from B down )
 
 then create a brand new session and save using SaveOrUpdateCopy(A), I get an exception about "deleted object will be re-saved" referring to B I have completely removed the reference to B from A.
 
 if I use SaveOrUpdate, it works.
 
 Why the difference?
 
 
 Hibernate version:
 NHibernate 0.9
 
 
 |