@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.

Attachments

1

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created October 17, 2022 at 4:20 PM
Updated October 28, 2022 at 12:09 PM
Resolved October 27, 2022 at 6:37 PM