You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Alexander Budarov (JIRA)" <ji...@apache.org> on 2015/06/02 14:13:17 UTC
[jira] [Updated] (OPENJPA-2593) Many-to-many collection is not
lazily loaded if entity has been merged into context right after persist
[ https://issues.apache.org/jira/browse/OPENJPA-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Budarov updated OPENJPA-2593:
---------------------------------------
Attachment: testcase-mtm.zip
project with test cases
> Many-to-many collection is not lazily loaded if entity has been merged into context right after persist
> -------------------------------------------------------------------------------------------------------
>
> Key: OPENJPA-2593
> URL: https://issues.apache.org/jira/browse/OPENJPA-2593
> Project: OpenJPA
> Issue Type: Bug
> Components: jpa
> Affects Versions: 2.3.0
> Reporter: Alexander Budarov
> Priority: Minor
> Attachments: testcase-mtm.zip
>
>
> Steps are the following:
> 1) Persist an entity which has a many-to-many collection link;
> 2) Create related entity;
> 3) Merge first entity to another persistence context.
> 4) Try to lazily load collection - it does not get loaded.
> If you reload the entity in a separate transaction through entityManger.find() before merging - lazy loading works.
> Test project with two test cases attached (please run test methods separately).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)