Hi Marc,

mschipperheyn wrote:
Right, ok. Hmm, getting a Caused by: org.dbunit.DatabaseUnitException:
com.mysql.jdbc.exceptions.MySQLInte
grityConstraintViolationException: Cannot add or update a child row: a
foreign k
ey constraint fails (`compraventa/barrios`, CONSTRAINT `FK4F5D3CCEB9857FF2`
FORE
IGN KEY (`FK_CityId`) REFERENCES `cities` (`cityId`))

That's prob caused by the sample data -1 being inserted while there isn't a
City created yet. I'll try to appfuse:gen all those POJOs first to have some
coherent sample data.
You'll also need to make sure the order of the sample data is correct or you'll keep getting those errors. Parent records will need to be inserted before child records. After running appfuse:gen on my POJOs, I had to do much cutting and pasting in my sample data before it would go in without errors.

HTH,

Rob Hills
Waikiki,  Western Australia

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to