What actually happened is that the true issue was corrected in
HHH-7984
(and you're right – it partially involves IdentityGenerator#GetGeneratedKeysDelegate#executeAndExtract). However, one follow-up commit wasn't backported to 4.2 (whoops): https://github.com/hibernate/hibernate-orm/commit/dc193c32c588d609ab45ff96511d5f9219fed569
I'm cherry-picking and committing that – it'll be out in 4.2.7. Or, you can try it now in 4.3.0.Beta1 or later.
Marking this as a duplicate of
HHH-7984
.
|