Entity Bean's remove() method

D K <[email protected]> Tue, 20 Apr 2004 00:33:50 -0700
Newsgroups gmane.comp.java.sun.ejb.general
Message-ID <[email protected]>
Hi,

When we invoke a remove method on entity bean - that has some relationship with other entity beans, mentioned in deployment descriptor - I understand the following will occur:

(1) The container will remove Entity Bean from all relationship in which it participates

(2) The persistent representation of the Entity Bean will be removed

In Section "10.3.4.1" of ejb specification, besides the above, the following is mentioned:

"After removing the entity object from all relationships and removing its persistent representation, the container must then cascade the removal to all entity beans with which the entity had been previously in
container-managed relationships for which the cascade-delete option was specified."


What is the difference between the relationships that are deleted here and the relationships get deleted in step (2) - can someone clarify?

-KD

_____________________________________________________________
Free, simple, fast, memorable email
Become [email protected] at http://www.emailaccount.com/

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".