-
1. Re: CASCADE DELETE
aloubyansky Feb 28, 2004 1:28 PM (in response to dreyk)JBossCMP handles cascade delete itself (w/o cascade delete settings in the db). How do you configure it that is does not work?
-
2. Re: CASCADE DELETE
dreyk Feb 29, 2004 6:53 AM (in response to dreyk)Yes. It's work when i set <fk-constraint> to false. But can i do it this <fk-containt> to true value?For example I have Other Aplication(that execute not under Jboss) that work this data base, and I whant remove any row from whis table whis cade delete from child table?
-
3. Re: CASCADE DELETE
dreyk Feb 29, 2004 7:28 AM (in response to dreyk)Ok.I'm understand. If I whant to use Jboss for casdade delte I must set "fk-constraint" option to false and set <cascade-delete> flag im my ejb-jar file.If i whant that Database do cascade delete i must don't set <cascade-delete> in my ejb-jar file, but create in database fk-coinstraint, whis cascade-delete option.
-
4. Re: CASCADE DELETE
aloubyansky Feb 29, 2004 9:34 PM (in response to dreyk)JBoss will not create any cascade-delete flag in the database. It is not a bug. How do you configure cascade-delete? Show the code which does not work.
-
5. Re: CASCADE DELETE
aloubyansky Feb 29, 2004 9:37 PM (in response to dreyk)Sorry, I didn't read your last post.
In general, I would not recommend you configuring cascade-delete in the database due to caching issues. -
6. Re: CASCADE DELETE
dreyk Mar 3, 2004 7:24 AM (in response to dreyk)Thanks Loubyansky for u help.Sorry for my English:)