Any plans to support loading subgraphs? #57
Closed
jamestrandung started this conversation in General
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.
3 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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
brandat the same time, for instance, this library doesn't support such feature yet.This is already an existing feature of
@NamedEntityGraphand@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