openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Azamat S. Kalimoulline" <tur...@bazon.ru>
Subject OpenJPA fetch depth
Date Sat, 31 Mar 2012 12:24:06 GMT
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

Mime
View raw message