Feature Requests item #998553, was opened at 2004-07-27 08:13
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376688&aid=998553&group_id=22866

Category: JBossCMP
Group: v4.0
Status: Open
Resolution: None
Priority: 5
Submitted By: Vikram Naik (vbnaik)
Assigned to: Nobody/Anonymous (nobody)
Summary: Allow database to throw Referential Integrity violation.

Initial Comment:
Currently Jboss nullifies the foreign key constraints 
before deleting a referenced entity, and Referential 
integrity violation is not thrown by database, when fk 
constraints are defined at database level.

Say for example:
 
An EJB A is being referenced by EJB B (M:1 CMR). So on 
deletion of EJB A we should get referential intergrity 
violation from database as B is referencing A. 

When we try to delete A invoking the remove() method,  
JBOSS AS first nulls out the reference of A in ejb B and 
then deletes it and as a result no referential integrity 
error from database is thrown. 

It is big pain to code in business logic for referential 
integrity, we would highly appreciate, if an option is 
provided in JBoss to turn off the this logic, if at all a 
developer wants database to handle the referntial 
integrity for the application.

Thanks,
Vikram Naik 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376688&aid=998553&group_id=22866


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to