Hi,

I have a deployment environment of JBOSS - DB2 in which have deployed an application 
using EJB CMP 2.0. 

I have also defined foreign key constraints on database. 

Say for example I have an Entity A which is being referenced by B. So on deletion of A 
i should get Referential Intergrity violation as B is referencing A. 

If i try to delete the entity A using Db2 client, it gives me the referential 
integrity violation. 

But when i try to delete A invoking the remove() method using the EJB, JBOSS first 
nulls out the reference of A in entity B and then deletes it and as a result I dont 
get the Referential Integrity Error from database.

Please throw some light on what to configure in JBOSS from stopping it to nullify the 
reference of A in B when remove() method is invoked.

- Vikram.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828886#3828886

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828886


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to