[ 
https://issues.apache.org/jira/browse/OPENJPA-862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664876#action_12664876
 ] 

Arne Limburg commented on OPENJPA-862:
--------------------------------------

When analyzing the executed sql of the test-case, I recognized that OpenJPA 
uses the wrong Pet-ID during selection of the visits for the second pet. It 
uses the ID of the first pet instead.

>From this observation I guess this is a caching problem. As a new 
>entity-manager is used for every query (doing this within one entity-manager 
>seems to work fine) the caching problem must be somewhere in the 
>entity-manager-factory.

> Wrong id-parameter used for prepared statement when fetching a collection
> -------------------------------------------------------------------------
>
>                 Key: OPENJPA-862
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-862
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: datacache
>    Affects Versions: 1.2.0
>            Reporter: Arne Limburg
>         Attachments: OPENJPA-862.zip
>
>
> When fetching a collection that is a property of an entity that was fetched 
> through a collection, too, under some (reproducable) circumstances the 
> collection is empty instead of filled with the correct entities.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to