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.