[
https://issues.apache.org/jira/browse/OPENJPA-677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620874#action_12620874
]
Pinaki Poddar commented on OPENJPA-677:
---------------------------------------
This is an intermediate (and inaccurate) fix for the problem.
This will only work when the most-derived class is target of a relation.
For example, declared type of RegularUser.admin is Admin which is the
most-derived class in this case and hence only the fix works. Otherwise, most
likely it will show the same error.
Will attempt to put a more comprehensive fix
> Single Table Inheritance Strategy causes entity identity issues
> ---------------------------------------------------------------
>
> Key: OPENJPA-677
> URL: https://issues.apache.org/jira/browse/OPENJPA-677
> Project: OpenJPA
> Issue Type: Bug
> Affects Versions: 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.3.0
> Environment: IBM Java 1.5
> Reporter: Przemek Koprowski
> Assignee: Pinaki Poddar
> Attachments: TestJPAIdentityWhenSingleTable.zip
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.