Re: [appfuse-user] dbunit and foreign key

2007-08-31 Thread Julien C.
It's working. Thanks Matt. Matt Raible a écrit : Have you tried turning off foreign key constraints when running DbUnit? http://raibledesigns.com/rd/entry/dbunit_tip_turn_off_foreign Matt On 8/29/07, dylan schleppe <[EMAIL PROTECTED]> wrote: Julien, wish I had an answer for you but I run

Re: [appfuse-user] dbunit and foreign key

2007-08-29 Thread Matt Raible
Have you tried turning off foreign key constraints when running DbUnit? http://raibledesigns.com/rd/entry/dbunit_tip_turn_off_foreign Matt On 8/29/07, dylan schleppe <[EMAIL PROTECTED]> wrote: > Julien, > wish I had an answer for you but I run into this at times. The problem for > me seems to b

Re: [appfuse-user] dbunit and foreign key

2007-08-29 Thread dylan schleppe
Julien, wish I had an answer for you but I run into this at times. The problem for me seems to be xdoclet not putting the ON DELETE CASCADE statements in the create tables statements. I'd love to hear if anyone else has gotten this to work with mysql. I'm using mysql 5.x and all the tables are in

[appfuse-user] dbunit and foreign key

2007-08-29 Thread Julien C.
Hi, I've got a problem using dbunit. I have a class "Element" which have an collection of "Element" and etc... So when dbunit wants to delete content before insert it makes an error : Embedded error: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot delete or upd