cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Razumovsky <razumovsky.and...@gmail.com>
Subject Re: EJBQL and Refreshing Data
Date Thu, 06 May 2010 08:00:53 GMT
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 <apl@lindesay.co.nz>

> 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

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