OpenJPA
  1. OpenJPA
  2. OPENJPA-677

Single Table Inheritance Strategy causes entity identity issues

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.3.0
    • Fix Version/s: 1.2.3, 1.3.0, 2.0.0-M1
    • Component/s: None
    • Labels:
      None
    • Environment:
      IBM Java 1.5

      Description

      Entity objects that are pulled out from the database using bean methods (get*()) are not the same objects that are pulled out using using other methods(find(), getReference()).

      This occurs only when using Single Table Inheritance.

      This works on 0.9.7, in other versions Exception is thrown (https://issues.apache.org/jira/browse/OPENJPA-494) , in latest version from trunk test fails.

        Activity

        Przemek Koprowski created issue -
        Przemek Koprowski made changes -
        Field Original Value New Value
        Attachment TestJPAIdentityWhenSingleTable.zip [ 12387654 ]
        Pinaki Poddar made changes -
        Assignee Pinaki Poddar [ ppoddar@apache.org ]
        Przemek Koprowski made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Donald Woods made changes -
        Fix Version/s 2.0.0-M1 [ 12313624 ]
        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Michael Dick made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Michael Dick made changes -
        Fix Version/s 1.2.3 [ 12314517 ]
        Michael Dick made changes -
        Fix Version/s 1.3.0 [ 12313326 ]
        Michael Dick made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Pinaki Poddar
            Reporter:
            Przemek Koprowski
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development