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 update a parent row: a foreign key constraint fails (`Element`, CONSTRAINT `FK1BB6DCD894131D` FOREIGN KEY (`ELEMENT_ID`) REFERENCES `Element` (`id`))

any ideas ?
thanks, Julien Chanséaume.

Reply via email to