dcsimg
On-delete-cascade in Entity Beans
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   RV_RamaKrishna
Posted On:   Sunday, January 2, 2005 12:14 AM

			
What is on-delete-cascade option in Entity Beans?I would be greatful to u if u can give some code for that.
Thankx in advance.

Re: On-delete-cascade in Entity Beans

Posted By:   Sandeep_Shilawat  
Posted On:   Sunday, January 2, 2005 04:41 PM

Cascade Delete:

On enabling cascade delete for any Entity Bean paticipating in CMR, it causes all related bean instances to be deleted by the container if the current bean is deleted.



This way you do not get FK violation exceptions even if the underlying database does not support ON DELETE CASCADE



Please check how does the vendor of the app server you are using implements Cascade delete. PLEASE NOTE THE multiplicity


In ejb-jar.xml this is how you enable







table_relationship_role

Many


TableBean



About | Sitemap | Contact