openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ekin Sokmen (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-334) ManyToMany relationship not handled properly while using QueryCache .
Date Fri, 24 Aug 2007 12:33:34 GMT
ManyToMany relationship not handled properly while using QueryCache .
---------------------------------------------------------------------

                 Key: OPENJPA-334
                 URL: https://issues.apache.org/jira/browse/OPENJPA-334
             Project: OpenJPA
          Issue Type: Bug
          Components: datacache
    Affects Versions: 1.0.0
         Environment: Fedora 6
Java 1.5.0_11
            Reporter: Ekin Sokmen
         Attachments: testcase_querycache.zip

Following description is a simplified model of the issue we are facing. 

Assume that we have 2 entities EntityA and EntityB in ManyToMany relationship. We are going
to create a new instance of EntityA and add an existing instance of EntityB to it. We are
creating a new POJO instance of EntityA and add an existing instance of EntityB to it. Then
we persists the new instance of EntityA. Then we retrieve the instance of EntityA using OpenJPA
and check the content of it. Without QueryCache this works well. But if the query cache is
enabled the first time we get the instance of EntityA we get a properly populated EntityA
instance but the second time we try to retrieve the same instance we get an empty set of included
EntityB instance(s).

The attached test case demonstrates this issue clearly.


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


Mime
View raw message