Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-2082

ANN-841 - Bidirectional indexed collection mapped incorrectly for IndexedCollectionTest

XMLWordPrintable

    • 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.

              shaozliu Strong Liu(刘少壮) (Inactive)
              gbadner@redhat.com Gail Badner (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: