On Mon, Dec 7, 2009 at 3:48 PM, Jean-Baptiste BRIAUD -- Novlog <
j-b.bri...@novlog.com> 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:da...@6degrees.com

Reply via email to