Currently, I am testing EntityGraphs with Hibernate and I found a bug. I've created a simple query and a graph with attributes nodes and subgraphs. I Connected both elements with a "fetchgraph" query hint. Here's my sample code
While executing, Hibernate throws follow exception
Hibernate generated follow SQL-Statement (which contains a comma between two left-join clauses)
I've created also a testcase as a pull request on GitHub.
JDK 1,7, DB2, JEE7
I have a proposed fix this this, but I'm seeing the same sort of duplicated columns that I saw in when the same element collection is explicitly referenced in an HQL statement and in an EntityGraph.
I don't think this fix causes this duplication, but I will look into it further.
Fixed in master and 4.3 branches.
, thanks for the unit test, and thanks, , for simplifying the test case!
Closing in preparation of releasing 4.3.9.Final and 4.2.19.Final.