I call this 2 methods before adding the fields I want but still it doesn't 
behave like expected.

On Dec 7, 2009, at 13:00 , Michael Vorburger wrote:

>> how to dynamically, using fetch plan, exclude (rather than adding) to
> the fetch plan some attribute not to retrieve 
> 
> I probably misunderstand, but doesn't FetchPlan.clearFields() +
> FetchPlan.clearFetchGroups() followed by a few addField() do what you
> want (I haven't tried) ?
> 
> http://openjpa.apache.org/builds/1.2.1/apache-openjpa-1.2.1/docs/javadoc
> /org/apache/openjpa/persistence/FetchPlan.html
> 

Reply via email to