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

    Details

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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                stliu Strong Liu
                Reporter:
                gbadner Gail Badner
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: