This content has been marked as final.
Show 4 replies
-
1. Re: JBoss setting FK of the many side of a one-to-many relat
ebrain13 May 9, 2004 8:36 AM (in response to mikejlong)It seems that this is the default behavious jboss has adapted. I have faced the same problem trying to exploit the DB Constraints was not able to as JBoss before deleting updates to references to null .. and then it calls the remove.
There is nothing configuration wise available right now to make JBoss understand to not update the foreign key references.
-Vikram. -
2. Re: JBoss setting FK of the many side of a one-to-many relat
sesques May 9, 2004 9:31 AM (in response to mikejlong)Hi,
Are you using the jboss relation tag with fk-constraint set to true ?
Pascal -
3. Re: JBoss setting FK of the many side of a one-to-many relat
aloubyansky May 10, 2004 5:00 AM (in response to mikejlong)It is the intended behaviour.
-
4. Re: JBoss setting FK of the many side of a one-to-many relat
mikejlong May 10, 2004 9:59 AM (in response to mikejlong)Thanks for your replies. In the case where I have a restrictive database constriant(one that prohibits the deletion of the parent if it has any children), I will implement the fix in code.