Thanks, Pawel, Yes, I normally try to stick with just javax.persistence API, but I wanted to force fetching entire object graph and I thought eager fetching would do that, as shown here:
http://openjpa.apache.org/builds/1.0.3/apache-openjpa-1.0.3/docs/manual/ref_guide_perfpack_eager.html Example 5.23, but it didn't work... (I still had to iterate over relationship Lists to provoke fetching of related entities) Thanks, -Chris On Thu, Apr 11, 2013 at 4:38 PM, Pawel Veselov <[email protected]>wrote: > On Thu, Apr 11, 2013 at 1:24 PM, Chris Wolf <[email protected]> wrote: > > > ... in this interface? > > > > public interface OpenJPAQuery<X> extends TypedQuery<X> > > > > (an example would be good also) > > > > X is the class of the objects that the query is supposed to return. > > TypedQuery<EAgent> agents = > em.createNamedQuery(EAgent.GET_ALL, EAgent.class); > for (EAgent agent : agents.getResultList()) { > // have fun > } > > (sorry, I don't use OpenJPA classes directly) > > > > > > Thanks, > > > > Chris > > >
