This semantics of implied deletion of elements from the database as they are removed from their collection in Java memory is supported by @ElementDependent annotation (not pure JPA but OpenJPA) http://incubator.apache.org/openjpa/docs/latest/manual/manual.html#depen dent
Pinaki Poddar BEA Systems 415.402.7317 _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. -----Original Message----- From: Phill Moran [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 3:23 PM To: open-jpa-dev@incubator.apache.org Subject: Implied deletes Does OPEN-JPA support implied deletes? Let me tell you of the scenario; if you have the proverbial magazine class that contains references to several article classes (1-* relationship, cascade-all) if you should remove one of the articles from the contained list and merge the resultant magazine class will the removed article class be automatically deleted? The alternative would be to remove the article class and delete it manually then merge the magazine class. Phill Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.