openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abe White <awh...@bea.com>
Subject Re: [jira] Resolved: (OPENJPA-39) Cascade delete does not work with foreign key constraints
Date Tue, 12 Sep 2006 16:21:12 GMT
>
>> - When you delete a parent object and the operation cascades to  
>> children, the object-level operation order is delete parent, then  
>> delete children.
>
> In my experience, the cascade should delete the children first.  
> This solves 99% of the cascade delete issues.

It seems to me you'd just have the exact same problem when forward  
foreign keys (rather than inverse ones as in a one-many) are used.   
Or do you mean that cascading to a collection should delete the  
children first, but cascading through a to-one should not?
>>Register now for BEA World 2006 --- See http://www.bea.com/beaworld<<
_______________________________________________________________________
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.

Mime
View raw message