You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Daryl Stultz <da...@6degrees.com> on 2009/10/08 19:57:31 UTC

Re: noob: understanding dynamic fetch modes

On Tue, Sep 29, 2009 at 11:27 PM, Pinaki Poddar <pp...@apache.org> wrote:

>
> > ojem.getFetchPlan().addField(A.class, "B");
>
> Mike is right.
>
>
I have discovered that in addition to Mike being right, Daryl is wrong. It
seems I was confounded by a bug where the parent entity is not being
returned for each child. I would think this would work fine for a single
field value:

select a from A as a
join fetch a.b

This avoids having to cast into OpenJPA.

-- 
Daryl Stultz
_____________________________________
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:daryl@6degrees.com