openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yanko Zhivkov (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (OPENJPA-944) FetchAttribute.recursionDepth = -1 does not load properly self referenced entities in a complex relation
Date Thu, 26 Feb 2009 22:23:01 GMT

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

yzhivkov edited comment on OPENJPA-944 at 2/26/09 2:21 PM:
----------------------------------------------------------------

Attached a test case that shows the error. I tried the test case with 1.0.0, 1.0.1, 1.0.3,
1.1.0 and 1.2.0 and even with the latest trunk code but neither of them work.

For running the test case unzip the zip file and execute from a shell:
  mvn install

The provided test case extends SingleEMFTestCase and can directly be copied into openjpa-persistence-jdbc/src/test
for being executed within there as well.


      was (Author: yzhivkov):
    Attached a test case that shows the error. I tried the test case with 1.0.0, 1.0.1, 1.0.3,
1.1.0 and 1.2.0 and even with the latest trunk code but neither of them work.

The provided test case extends SingleEMFTestCase and can directly be copied into openjpa-persistence-jdbc/src/test
for being executed within there as well.

  
> FetchAttribute.recursionDepth = -1 does not load properly self referenced entities in
a complex relation
> --------------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-944
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-944
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc, kernel
>    Affects Versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.1.0, 1.2.0
>         Environment: JDK: Sun 1.5
> Database: Derby 10.2.2.0
> OS: Windows XP 
>            Reporter: Yanko Zhivkov
>            Priority: Critical
>         Attachments: openjpa_complex_relation_recursion_test.zip
>
>
> A problem with loading recursively referenced entities was found when there is a complex
relation of the following kind:
> Leaf <-> BranchConnection <-> Branch(1) <- Branch(2) <- ...
> where Branch has a self reference to itself.
> Using a FetchPlan with a fetch group that has a fetch attribute with recursionDepth=-1
does not produce the expected result and only the first of the Branch nodes is loaded. 
> Loading a Leaf with 5 branches in a row and traversing through them fails right on level
3 (starting from 5 downwards) which leads to the thought that OpenJPA loads only the first
element (along with its direct parent).

-- 
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