cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Lindesay <>
Subject Re: EJBQL and Refreshing Data
Date Thu, 06 May 2010 09:26:04 GMT
Hello Andrey;

> yeah, you can use fetch joins (since 3.0). something like
> select f FROM FooBar f inner join fetch f.bars b ...

I tried that and it produces a query which excludes objects from the result-set where there
is nothing in the join.  The behaviour of "query.addPrefetch(..)" would be to run two SELECT
database queries to get the additional data and freshen-up the relationship if my thinking
is correct.


Andrew Lindesay

View raw message