Being new to Hibernate Community, I apologise if I shouldn't have opened this issue, or if it is simply an error on my part. I have however the feeling there might be a bug when, using a NamedEntityGraph to load two collections that both refers to the same Entity. I did try to provide an example using hibernate orm 5 test template.
So I have a Person Entity and a Link Entity which basically links a Parent Person and a Child Person. Every relation is marked as lazy. I wish to write an NamedEntityGraph that load a Person instance, as well as its parent links (inclusive the Parent Person Instance), and its child links (inclusive the Child Person Instance) all together. Unfortunately in my test case some of the Link properties are not correctly loaded, and I can trace it to an apparently missing JOIN in the generated SQL query.
Please let me know if I can assist in providing further explanation, or the test case in some other format.