What about programmatically do cascade delete in the bean itself?
Sreenivasa K Majji
Ashwani Kalra
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
NT.COM> cc:
Sent by: A Subject: ejb Relation ships
mailing list for
Enterprise
JavaBeans
development
<EJB-INTEREST@JAV
A.SUN.COM>
07/09/02 04:18 PM
Please respond to
Ashwani Kalra
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".
***************************** 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".