Hi,

EJB 2.0 spec clearly mentioned about cascade-delete.
Please check whether your app server supports EJB2.0 or not?

Sreenivasa Kumar Majji



                    Ramakrishna N
                    <nramakrishna@VIR        To:     [EMAIL PROTECTED]
                    TUSA.COM>                cc:
                    Sent by: A               Subject:     Re: ejb Relation ships
                    mailing list for
                    Enterprise
                    JavaBeans
                    development
                    <EJB-INTEREST@JAV
                    A.SUN.COM>


                    07/09/02 07:27 PM
                    Please respond to
                    Ramakrishna N






Hi,
  1) That's exactly how the Application Server is supposed to work else its
a bug. App Server shoud not depend on DB for this.
  2) Yes that's the behaviour of the Application Server provided you have
given cascade-delete options appropriately in the ejb-jar.xml since its
bidirectional you need to set this option when defining the relationship
from either sides in ejb-jar.xml.

Regards,
kris

-----Original Message-----
From: Ashwani Kalra [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 6:48 AM
To: [EMAIL PROTECTED]
Subject: ejb Relation ships


Hi,

I have two questions
1. Is there any way in which application server should manage the cascade
deletion without the help of database.
i.e.  for e.g
cutomer --has-- accounts (1to many)
I dont want to create accounts table with cascade option of db.

2. In case of 1-1 relation ship(bidirectional)
eg  customer has account or  account has customer
if I deleted customer(customer.remove) then account row should be deleted
or
If I say account.remove then its associated customer is deleted. Is it
possible ??

===========================================================================
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".

===========================================================================
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".






*****************************  DISCLAIMER  ***************************

This message is confidential to the company, and is intended only
for the named recipient. It may also be privileged or otherwise
protected by work product immunity or other legal rules. If you are
not the intended recipient, you are requested to delete this mail and
also be notified that disclosing, copying, distributing or taking any
action in reliance on the contents of this mail is strictly prohibited.
The company accepts no liability for any damage caused by any virus
transmitted by this email.

**********************************************************************

===========================================================================
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".

Reply via email to