You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Abe White (JIRA)" <ji...@apache.org> on 2006/09/25 20:41:50 UTC

[jira] Commented: (OPENJPA-59) Eager fetching not occuring for ToOne relationships during detachment

    [ http://issues.apache.org/jira/browse/OPENJPA-59?page=comments#action_12437637 ] 
            
Abe White commented on OPENJPA-59:
----------------------------------

The behavior of the test case is technically correct, because the default global MaxFetchDepth is 1.  If I modify the test case to set a MaxFetchDepth of 2 in setUp, it passes.  I agree that this is not necessarily user-friendly, though.  So the question is: what should our default max fetch depth be?  Unlimited?  2, so that at least both sides of bi-di relations are handled?  Some other arbitrary number that we think is reasonable?

> Eager fetching not occuring for ToOne relationships during detachment
> ---------------------------------------------------------------------
>
>                 Key: OPENJPA-59
>                 URL: http://issues.apache.org/jira/browse/OPENJPA-59
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>         Environment: Any
>            Reporter: David Ezzio
>            Priority: Critical
>         Attachments: detachmentTestOpenJPA.zip
>
>
> If there is a bidirectional onetomany relationship between parent and child maintained with a foreign key, during detachment, the parent and children are correctly detached, but the back reference in child to the parent is not populated.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira