openjpa-users mailing list archives

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

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 a.bs join fetch a.bs.cs;

Also denied:
select a from A a join fetch a.bs 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,
Michael

Mime
View raw message