ok i figured it out... the generated test date is pointing to non
existing data....

tibi

tibi wrote:
> hi list,
>
> i added some pojo's and get this error:
> running
> mvn clean test
> [INFO] [compiler:testCompile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [dbunit:operation {execution: test-compile}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error executing database operation: CLEAN_INSERT
> Embedded error:
> com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException:
> Cannot add or update a child row: a foreign key constraint fails
> (`tesla/Action`, CONSTRAINT `FK74946A56F0D8263B` FOREIGN KEY
> (`contactPerson_id`) REFERENCES `ContactPerson` (`id`)
>
> when i run
> mvn hibernate3:hbm2ddl
> all is fine.
> so the database can be created fine.
>
> any clue??
>
> thanks
>
> tibi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to