OpenJPA
  1. OpenJPA
  2. OPENJPA-1200

Incorrect Entity is returned if ElementClassCriteria is not selected.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M2
    • Fix Version/s: 1.1.1, 2.0.0-M3
    • Component/s: None
    • Labels:
      None
    • Patch Info:
      Patch Available
    1. OPENJPA-1200_trunk.patch
      17 kB
      Ravi P Palacherla
    2. openJPA-1200_1.1.x.patch
      19 kB
      Ravi P Palacherla

      Activity

      Ravi P Palacherla created issue -
      Ravi P Palacherla made changes -
      Field Original Value New Value
      Attachment OPENJPA-1200_trunk.patch [ 12414773 ]
      Ravi P Palacherla made changes -
      Patch Info [Patch Available]
      Ravi P Palacherla made changes -
      Attachment OPENJPA-1200_trunk.patch [ 12415044 ]
      Ravi P Palacherla made changes -
      Attachment OPENJPA-1200_trunk.patch [ 12414773 ]
      Ravi P Palacherla made changes -
      Attachment OPENJPA-1200_trunk.patch [ 12416703 ]
      Ravi P Palacherla made changes -
      Patch Info [Patch Available]
      Ravi P Palacherla made changes -
      Attachment OPENJPA-1200_trunk.patch [ 12417270 ]
      Ravi P Palacherla made changes -
      Attachment OPENJPA-1200_trunk.patch [ 12416703 ]
      Ravi P Palacherla made changes -
      Attachment OPENJPA-1200_trunk.patch [ 12415044 ]
      Michael Dick made changes -
      Status Open [ 1 ] Resolved [ 5 ]
      Fix Version/s 2.0.0-M3 [ 12314148 ]
      Fix Version/s 2.0.0 [ 12314019 ]
      Resolution Fixed [ 1 ]
      Donald Woods made changes -
      Fix Version/s 2.0.0 [ 12314019 ]
      Affects Version/s 2.0.0-M2 [ 12313483 ]
      Affects Version/s 2.0.0 [ 12314019 ]
      Ravi P Palacherla made changes -
      Attachment openJPA-1200_1.1.x.patch [ 12427133 ]
      David Ezzio made changes -
      Fix Version/s 1.1.1 [ 12313177 ]
      Donald Woods made changes -
      Status Resolved [ 5 ] Closed [ 6 ]
      Ravi P Palacherla made changes -
      Comment [ Hi Pinaki,

      http://openjpa.208410.n2.nabble.com/ClasscastException-when-ClassCrietria-is-not-used-td3290568.html#a3290568

      Yes the usecase works if ElementClassCriteria is used.
      ElementClassCriteria is openJPA specific annotation and what if a user do not want to use any openJPA specific annotations? One of the reason being easily portable to some other JPA vendor in the future.
      In that case I would expect Artist.getItems() to just return Items and not books.

      Regards,
      Ravi.

      ]

        People

        • Assignee:
          Ravi P Palacherla
          Reporter:
          Ravi P Palacherla
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development