openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Simons <>
Subject Problem with join fetch
Date Fri, 22 May 2009 17:09:50 GMT

Assume three classes A (1:N) B (1:N) C:
class A { List<B> bs; }
class B { List<C> cs; }

Why is the following query denied?

select a from A a join fetch join fetch;

Also denied:
select a from A a join fetch b join fetch b.cs;

Why doesn't this create an SQL statement like

select ... from A inner join B inner join C

thanks for any hints,

View raw message