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?
(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?