Hi,

 I would like to propose a new callback method:

 OnDereference(Session session, Owner object);

 This would be called for objects which are deleted from collections, and
enable the application an easy way to decide whether to delete this object
from the database or not.
 The owner object is the object which has a reference (Java wise) to the
collection that includes this object.

 Three questions:

 1. Is it feasible?
 2. Is this a good idea performance wise, and design wise.
 3. Would it be useful to add a third parameter - the collection which
referenced the object till now (for non arrays only...)

Thanks, Yaron.




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to