-
Notifications
You must be signed in to change notification settings - Fork 96
[#1501] Fix SubselectFetchTest #1729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
hibernate-reactive-core/src/test/java/org/hibernate/reactive/SubselectFetchTest.java
Outdated
Show resolved
Hide resolved
3b3252a
to
4ba8cf8
Compare
Replaced the extended class of |
Note that this change/fix did not fix #1501. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why this fixes the issue, and I don't think it's correct even if it does.
That's said, I think you are on the right track.
The reason I don't think this is correct is that now ReactiveEntityJoinedFetchInitializer
becomes a subclass of EntityResultInitializer
. This is different from what's happening in ORM where EntityResultInitializer
and EntityJoinedFetchInitializer
are both subclasses of AbstractEntityInitializer
. That's why in Hibernate Reactive we have ReactiveAbstractEntityInitializer
mimicking AbstractEntityInitializer
Also, I don't understand why this change makes the test pass.
The only difference between ReactiveEntityResultInitializer
and EntityResultInitializer
is the CONCRETE_NAME
. Maybe that's what's causing the test to fail?
ORM's 6.2 version of SubselectFetch contains a check on In ORM 6.3, they've cleaned up So I can merge my commit if we need to release another HR version off of 6.2, or push this issue to our 6.3 version? |
We cannot merge this commit. We could avoid extending |
k... I'll check that out. thx |
Note that this issue was solved by a change in Hibernate ORM. |
@blafond I've just tested this with 6.3 and it doesn't seem to work. Could you double check? |
sure |
Superseded by #1746 |
fixes #1502
size()