Bugs item #1056004, was opened at 2004-10-28 03:42 Message generated for change (Comment added) made by starksm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1056004&group_id=22866
Category: JBossCMP Group: v3.2 Status: Open Resolution: None Priority: 5 Submitted By: Vladimir Stefanyuk (kletchatey) Assigned to: Alexey Loubyansky (loubyansky) Summary: batch-cascade-delete problem Initial Comment: I have 4 entities: Client Project Order OrderLine Order has a NOT-NULL foregin key reference to Client. Order has a NULL-ABLE foreign key reference to Project. OrderLine has NOT-NULL foreign key reference to Order. Between Order and Client, Order and Project, OrderLine and Order are 1:M relations. For OrderLine-Order relation <cascade-delete/> is specified in ejb-jar.xml. To prevent from UDATING to NULL orderId in OrderLine, <batch-cascade-delete/> is specified in jbosscmp- jdbc.xml. The problem is, that when Order is deleted, an attempt is made to UPDATE Order NOT-NULL foreign keys to NULL values. In case if <batch-cascade-delete/> is not specified this problem doesn't appear, but of course problem with updating OrderLine orderId field appear. Note: This updating is doing only for foreign-keys that contains NOT-NULL values. ---------------------------------------------------------------------- Comment By: Scott M Stark (starksm) Date: 2004-12-29 12:52 Message: Logged In: YES user_id=175228 All issues have been moved to http://jira.jboss.com. Existing issues have been moved. New issues will be closed with this canned reponse. ---------------------------------------------------------------------- Comment By: Vitaliy Morarian (vmorarian) Date: 2004-11-03 04:26 Message: Logged In: YES user_id=1151684 Have the same situation (JBoss 3.2.5) In what version will be fixed this bug? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1056004&group_id=22866 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
