Getting one-to-one association through a referenece to a bytecode enhanced entity fails
Description
Maximum fetch depth must be set to 0 and batch fetch size should be >1 to be able to reproduce the issue.
Having a model like
and trying to get the one-to-one association through a reference:
results in an exception:
I’ve narrowed it down to the fix for
Will send a PR with a test case
Activity
Show:
Marko BekhtaSeptember 6, 2023 at 11:13 AM
Seems that the problem comes from the AbstractEntityBatchLoader. In 6.2
while in 6.3
Hope this helps to narrow it down a bit more
Andrea BorieroSeptember 6, 2023 at 11:10 AM
Thanks for the test case.
Guillaume SmetSeptember 6, 2023 at 11:07 AM
Hey!
Given it’s blocking the 6.2.8.Final upgrade in Quarkus, I think we will need this backported to 6.2.
For the record, we have Quarkus users actively waiting for 6.2.8.Final fixes.
Marko BekhtaSeptember 6, 2023 at 10:53 AM
Thanks, this came up from the upgrade in Quarkus
I was looking forward to that new version of ORM for another ticket and noticed those tests
Here’s a test case
I’ve just double-checked and it looks like it is working OK on 6.3 (main branch). Failing on 6.2 though … I’ll look a bit more into 6.3 branch to see if it maybe got fixed somehow
Maximum fetch depth must be set to
0
and batch fetch size should be>1
to be able to reproduce the issue.Having a model like
and trying to get the one-to-one association through a reference:
results in an exception:
I’ve narrowed it down to the fix for
Will send a PR with a test case