openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Woods <dwo...@apache.org>
Subject Re: Issue with FetchAttribute recursionDepth
Date Tue, 03 Feb 2009 16:14:01 GMT
If you moved the @LoadFetchGroup from the getSubEntities() method to 
where the m_subEntities property is defined, would that also work?


Fetch group docs -
http://openjpa.apache.org/builds/latest/docs/manual/manual.html#ref_guide_fetch_custom


-Donald


Pinaki Poddar wrote:
> Hi Brain,
>    You have defined a FetchGroup named "subEntities" with arecursion depth
> of 50 alright. But defining a fetch group does *not* activate it. The fetch
> group which is active by default is called default and includes fields of
> basic types only. 
>    One way to activate "subEntities" fetch group is to activate it by name:
>     OpenJPAEntityManager em = ....;
>     em.getFetchPlan().addFetchGroup("subEntities");
>     // and now do the em operations.
> 
> 
> There are other ways to specify FetchGroups also. But let me know if the
> quickest way works for you.
> 
> 
>   

Mime
View raw message