Any plans to support loading subgraphs? #57
Replies: 1 comment 3 replies
-
You can already do that. Following your example, you can do: productRepository.findById(1L, EntityGraphUtils.fromAttributePaths("brand.foo", "brand.bar", "maker")); where You can also do that in a more elegant way using
If you use named EntityGraph (e.g. |
Beta Was this translation helpful? Give feedback.
-
This library provides a basic feature to load direct relationship fields in an entity, which is enough to cover most of basic use cases.
However, for more advanced use cases where we also need to load relationship fields of
brand
at the same time, for instance, this library doesn't support such feature yet.This is already an existing feature of
@NamedEntityGraph
and@NamedSubgraph
. Do we plan to support it in the future?https://thorben-janssen.com/hibernate-tip-entitygraph-multiple-subgraphs/
Beta Was this translation helpful? Give feedback.
All reactions