You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by Phill Moran <pj...@rogers.com> on 2007/05/22 22:23:17 UTC
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
RE: Implied deletes
Posted by Pinaki Poddar <pp...@bea.com>.
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:pjmoran@rogers.com]
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.