Does it work correctly if you use default database (derby)? If yes, it might be a MySQL specific bug somewhere.
Obviously there are plenty of tests that test relationships mapping which expect PK/FK combinations, not BLOBs. That's why I was asking about possible overrides or any mis-mapping. If you have a reproducible test case, please file a bug.
[Message sent by forum member 'mvatkina']
http://forums.java.net/jive/thread.jspa?messageID=482066