@NamedEntityGraph is not working when try to load Basic attribute with OneToMany relation.
Description
For demonstration purposes, I created the below example. If I try to use a named entity graph with “LazyEntity.stringOnly“, or “LazyEntity.childrenOnly“. It works fine. But I try to use “LazyEntity.stringAndChildren“ it only loads the “children” not “string” property. I also attached an example project.
If I run the example project with mvn compile exec:java command, This output will display. it says when the named entity graph “LazyEntity.stringAndChildren“ not working correctly.
For demonstration purposes, I created the below example. If I try to use a named entity graph with “
LazyEntity.stringOnly
“, or “LazyEntity.childrenOnly
“. It works fine. But I try to use “LazyEntity.stringAndChildren
“ it only loads the “children” not “string” property.I also attached an example project.
If I run the example project with
mvn compile exec:java
command, This output will display. it says when the named entity graph “LazyEntity.stringAndChildren
“ not working correctly.