openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jody Grassel (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OPENJPA-2413) FetchPlan.clearFetchGroups() does not retain "default" in list of active Fetch Groups.
Date Wed, 24 Jul 2013 18:07:48 GMT
Jody Grassel created OPENJPA-2413:
-------------------------------------

             Summary: 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.2.2, 2.3.0, 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

Mime
View raw message