-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: 4.2.0.GA_CP07, 4.3.0.GA_CP05, EAP 5.0.0
-
Fix Version/s: EAP 5.0.1.CR1, 4.2.0.GA_CP09, 4.3.0.GA_CP08
-
Component/s: Hibernate
-
Labels:None
-
Environment:
mysql
-
Affects:Release Notes
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.