| Hibernate version: 
1.2 GA
 Mapping documents:
 n/a
 Code between sessionFactory.openSession() and session.close():
 n/a
 
 Hi, i was wondering if my considerations are wrong: in particular, i doesn't understand why to make Evict() actually evicts all the associations and entities in collection of an object, i have to set each association or collection cascade="all-delete-orphans"
 
 Actually i found in a lot of scenarios that Evict() is needed to detach all the object graph from the session (e.g. for Remoting / WCF / websrv), and then reattach the object graph with lock() or Update () (that are supposed to work as Evict())
 
 So, why i need to set this cascade? a Customer on an Inovice is better suited for a save-update, and not a all-delete-orphan, but at the same time i can need the Evict() and Lock() that works on the entire object graph
 
 Am i missing something? I hope so.
 
 thanks
 
 
 |