You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by "Azamat S. Kalimoulline" <tu...@bazon.ru> on 2012/03/31 14:24:06 UTC

OpenJPA fetch depth

I have classes A, B, C. A has bs - list of B and B has cs - list of C. The 
defined by OneToMany relation. C has field b - parent B and B has field a - 
parent A. Thes defined by ManyToOne relation.
In OneToMany relation I've set fetch = FetchType.EAGER. But when I do 
em.find(A.class, id) i see several sqls instead of one. Property 
openjpa.jdbc.EagerFetchMode set to join. See attachment for more information.

-- 
WBR Turtle//BAZON Group