openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Minor <>
Subject Avoiding N+1 on collection in recursive relation
Date Tue, 08 Jul 2014 23:56:41 GMT
I have an entity (A) that has a recursive OneToMany relation with itself
(children). A also has a OneToMany relation to entity B.

Whenever A is fetched, the queries to fetch B for entity A and its children
are all separate queries.

Is there any way to avoid this?

David Minor

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message