I'm getting a foreign key constraint error when I use MySQL running under Windows 7. When I run the same MySQL and Hybernate code on Mac it works just fine. Here are the details of the error:

09:48:40,765 ERROR JDBCExceptionRe porter:101 - Cannot add or update a child row: a foreign key constraint fails (`ff`.`continge ncy`, CONSTRAINT `FK1F21462F6543 0969` FOREIGN KEY (`EEC_ID`) REFERENCES `event` (`EEC_ID`))
09:48:40,766 ERROR...