Hi Klaus,

Thanks for the reply. As per EJB2 spec there is a createDependentObject abstract 
method 
for each dependent object but no deleteObject. In which case to remove the dependent 
objects we have to write some JDBC code and call it in BEans ejbRemove method. 
If i were to do that the purpose of having CMPs with OR mapping gets defeated.

Do you have any other way of doing this?

Krishnan

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 27, 2000 12:17 AM
To: Orion-Interest
Subject: SV: Cascade Delete


Cascading delete is something that some database servers support, so far i
havent seen anywhere that Orion is to support that in the buissiness layer.
What you can do is make your own ejbRemove implementation that will do a
cascading delete in a beanmanaged Entity bean.

Klaus Myrseth


-----Opprinnelig melding-----
Fra: Reddy Krishnan [mailto:[EMAIL PROTECTED]]
Sendt: 27. september 2000 01:54
Til: Orion-Interest
Emne: Cascade Delete


Hi,

Having some problems while deleting a EJB. When i delete the ejb by
ejbobject.remove() method the dependent objects and relationship entries are
not
deleted from the database. Should this not be done automatically by the app
server.

Is this a problem in Orion or is there some explicit delete that needs to be
done in the remove method implementation in the bean.

Would appreciate any help on this.

Thanks
Krishnan

Reply via email to