You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/07/31 23:05:50 UTC

[jira] [Commented] (OPENJPA-2413) FetchPlan.clearFetchGroups() does not retain "default" in list of active Fetch Groups.

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

ASF subversion and git services commented on OPENJPA-2413:
----------------------------------------------------------

Commit 1509031 from [~fyrewyld] in branch 'openjpa/trunk'
[ https://svn.apache.org/r1509031 ]

OPENJPA-2413: FetchPlan.clearFetchGroups() does not retain default entry in list of active Fetch Groups.
                
> FetchPlan.clearFetchGroups() does not retain "default" in list of active Fetch Groups.
> --------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-2413
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2413
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 2.3.0, 2.2.2, 2.2.3
>            Reporter: Jody Grassel
>            Assignee: Jody Grassel
>            Priority: Minor
>
> The JavaDoc for FetchPlan defines the following contract:
>     /**
>      * Clears the set of fetch group names to use wen loading
>      * data. After this operation is invoked, only those fields in
>      * the default fetch group (and any requested field) will be
>      * loaded when loading an object.
>      */
>     public FetchPlan clearFetchGroups();
> After calling clearFetchGroups() the default fetch group is indeed active, however getFetchGroups() returns an empty Collection, which is clearly not correct.  This can deceive application developers into thinking that there is no active Fetch Groups (it, everything is lazy loaded) if this Collection's contents is relied upon.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira