Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1061

Entities extending from a Mapped Superclass that defines the ID fields share the same ObjectID type parameter

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0, 1.2.1
    • Fix Version/s: 1.0.4, 1.2.2, 1.3.0, 2.0.0-M3
    • Component/s: jpa
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      When a mapped superclass (MSC) defines @Id fields, it appears that entities extending the MSC use the MSC's type in the generated ObjectID's type field. This can result in unexpected primary key collissions between entities that are not intended to be related in an entity inheritance hierarchy. Attached to the JIRA is a junit test case that demonstrates the problem.

        Attachments

        1. OpenJPA-1061_1.2.x.patch
          212 kB
          Jody Grassel
        2. OpenJPA-JIRA1061-packagerefactor-trunk.patch
          289 kB
          Jody Grassel
        3. OpenJPA-JIRA1061-packagerefactor-1.2.x.patch
          288 kB
          Jody Grassel
        4. OpenJPA-JIRA1061_1166-packagerefactor-1.2.x.patch
          345 kB
          Jody Grassel

          Issue Links

            Activity

              People

              • Assignee:
                mikedd Michael Dick
                Reporter:
                fyrewyld Jody Grassel
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: