elementcollection embeddable contains only nulls when loading in multiple steps
Description
Hi, I think HHH-16811 breaks the loading of relations in multiple steps. This kind of loading is vital when there are multiple 1-N relations in an entity to avoid cartesian product queries (see for example )
I see the problem in hibernate 6.2.7 but not hibernate 6.2.6
So with the following setup (I’m adding here only relevant sections of code, I’ll attach a full springboot test case) (sorry it’s not plain hibernate but hopefully not a problem) (note that I didn’t have to have multiple bags, you already see the problem with one relation)
the following works:
But the following does not work (the list holds a null instead of the embedable object)
See attached testcase:
(or use springboot 3.1.2 in pom.xml which uses 6.2.6.Final by default)
Hi, I think HHH-16811 breaks the loading of relations in multiple steps. This kind of loading is vital when there are multiple 1-N relations in an entity to avoid cartesian product queries (see for example )
I see the problem in hibernate 6.2.7 but not hibernate 6.2.6
So with the following setup (I’m adding here only relevant sections of code, I’ll attach a full springboot test case) (sorry it’s not plain hibernate but hopefully not a problem) (note that I didn’t have to have multiple bags, you already see the problem with one relation)
the following works:
But the following does not work (the list holds a null instead of the embedable object)
See attached testcase:
(or use springboot 3.1.2 in pom.xml which uses 6.2.6.Final by default)