[
https://issues.apache.org/jira/browse/OPENJPA-1200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12863832#action_12863832
]
Ravi P Palacherla commented on OPENJPA-1200:
--------------------------------------------
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.
> Incorrect Entity is returned if ElementClassCriteria is not selected.
> ---------------------------------------------------------------------
>
> Key: OPENJPA-1200
> URL: https://issues.apache.org/jira/browse/OPENJPA-1200
> Project: OpenJPA
> Issue Type: Bug
> Affects Versions: 2.0.0-M2
> Reporter: Ravi P Palacherla
> Assignee: Ravi P Palacherla
> Fix For: 1.1.1, 2.0.0-M3
>
> Attachments: openJPA-1200_1.1.x.patch, OPENJPA-1200_trunk.patch
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.