Bugs item #563132, was opened at 2002-05-31 18:24
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=563132&group_id=22866

Category: JBossCMP
Group: v3.0 Rabbit Hole
Status: Open
Resolution: None
Priority: 5
Submitted By: Peter Luttrell (objec)
Assigned to: Nobody/Anonymous (nobody)
Summary: Mulitple CascadeDeletes do NOT work

Initial Comment:
I am using Jboss3.0 RC3 with Tomcat.

For entity beans with multiple relationships, Cascade 
Delete ONLY works on the child bean which is defined 
FIRST in the deployment descriptor <relationships> 
section.

I confirmed this by moving the decloration order and the 
cascadedelete worked with the opposite one that 
worked before and of course the original one didn't work.

This might be a little more clear:
I have 3 entity beans, which we'll call parentBean, child1 
and child2. child1 and child2 are related to parentBean 
in a one-to-one unidirectional fashion. I have defined 
cascadedelete for both child1 and child2. in the 
deployment descriptor the relationship between 
parentBean and child1 is listed first. When i delete 
parentBean, it gets deleted and so does child1. child2 is 
incorrectly left behind. If i change the order of the 
relationships in the deployment descriptor so that child2 
is first, and then delete parentBean, parentBean is 
removed and so is child2. child1 is left behind in this 
case. 

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=563132&group_id=22866

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to