openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daryl Stultz <da...@6degrees.com>
Subject Re: noob: understanding dynamic fetch modes
Date Thu, 08 Oct 2009 17:57:31 GMT
On Tue, Sep 29, 2009 at 11:27 PM, Pinaki Poddar <ppoddar@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message