JPA entity graph: e.g.
Order - OrderItem - Product
@NamedEntityGraph(name = "order",
attributeNodes = @NamedAttributeNode(value = "orderItems", subgraph = "orderItems"),
subgraphs = @NamedSubgraph(name = "orderItems", attributeNodes = @NamedAttributeNode("product")))
Why there is no joinType for order -> orderItems and orderItem -> product? All the joins in an entity graph are supposed to be LEFT joins?
The purpose of an EntityGraph is to define what to include in the result graph.
That does not affect the join type. So your dependencies are loaded the same way as they are loaded without EntityGraph.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With