yeah, you can use fetch joins (since 3.0). something like select f FROM FooBar f inner join fetch f.bars b ...
2010/5/6 Andrew Lindesay <[email protected]> > Hello; > > If an EJBQL query is performed; > > SELECT f FROM FooBar f WHERE ... > > I note (fairly obvious) that the to-many relationships of the fetch'ed > FooBar-s are not freshened. > > Is there a way to achieve this with an EJBQLQuery as I note there is no; > > query.addPrefetch(..) > > Thanks for any help. > > cheers. > > ___ > Andrew Lindesay > www.silvereye.co.nz > > -- Andrey
