|
Andy Jefferson made changes - 11/Jul/06 02:55 PM
Need to resolve these issues for maintenance release 1.
Craig Russell made changes - 29/Jul/06 08:02 PM
The specification has been updated for handling deletion of related instances.
Craig Russell made changes - 07/Dec/07 10:56 PM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The spec is pretty specific about when instances are removed from the datastore:
<spec 12.6.7>
These methods delete persistent instances from the datastore. They must be called in the
context of an active transaction, or a JDOUserException is thrown. The representation
in the datastore will be deleted when this instance is flushed to the datastore (via commit
or evict).
...
If deleting an instance would violate datastore integrity constraints, it is implementation-
defined whether an exception is thrown at commit time, or the delete operation is simply
ignored. Portable applications should use this method to delete instances from the datas-
tore, and not depend on any reachability algorithm to automatically delete instances.
</spec 12.6.7>
I think that both of the above paragraphs need some expert group discussion. I'll raise this on the expert group alias.