How do you do that ?

I'm using a new EM for one client-server network request but even in one 
client-server network request there may be several database request, so I would 
be interested to know how to you set a fetch plan for one request only.

On Dec 7, 2009, at 22:13 , Daryl Stultz wrote:

> On Mon, Dec 7, 2009 at 3:48 PM, Jean-Baptiste BRIAUD -- Novlog <
> [email protected]> wrote:
> 
>> Now, thanks to you, I'm doing the following :
>>       final FetchPlan fetchPlan = entityManager.getFetchPlan();
>>       fetchPlan.clearFetchGroups();
>>       fetchPlan.clearFields();
>>       fetchPlan.removeFetchGroup(FetchGroup.NAME_DEFAULT);
>> 
>> 
> FWIW, if you don't know already, modifying the fetch plan at the EM level
> affects all subsequent queries. You can also modify the fetch plan for
> individual queries.
> 
> -- 
> Daryl Stultz
> _____________________________________
> 6 Degrees Software and Consulting, Inc.
> http://www.6degrees.com
> mailto:[email protected]

Reply via email to