Details
-
Bug
-
Resolution: Done
-
Major
-
4.2.0.GA_CP07, 4.3.0.GA_CP05, EAP 5.0.0
-
None
-
mysql
-
Release Notes
Description
http://opensource.atlassian.com/projects/hibernate/browse/ANN-841
This bug causes the following tests in org.hibernate.test.annotations.indexcoll.IndexedCollectionTest tests to fail using mysql5:
testDefaultMapKey
testMapKeyToEntity
testComponentSubPropertyMapKey
testMapKeyEntityEntity
due to:
"Cannot add or update a child row: a foreign key constraint fails (`test1/AddressEntry`, CONSTRAINT `FK181B28FE1355AC4A` FOREIGN KEY (`firstname`, `lastname`) REFERENCES `AddressEntry` (`firstname`, `lastname`))"
The failures were due to a bug MySQL has with self-referencing foreign keys.