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