-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
HHH-14820 Reproducer - Customized EnumType not working with hbm mapping in Hibernate 6 #4210
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
A simple unit test illustrating issue HHH-14820 : since Hibernate ORM 6 the custom NamedEnumUserType is only instantiated once (while there are two enums configured with this type)
|
Thanks a lot for the test case. I'll look into it ASAP. |
|
I'm curious what actually fails for you here. The test passes for me rebased on top of current 6.0 branch. |
|
Did you remove the |
Probably you meant to execute the query... |
|
Ok, that was it. You probably removed the execution at some point |
|
BTW, have a fix already. Running the full tests and I'll push for you to try |
|
Sorry that was not super clear, I tried again with the latest version of the wip/6.0 branch and test failed with this error: It's great to hear that fix is coming up, thank you very much for looking into it! |
|
No idea. But the test does not fail until I actually executed the query. And in fact your stacktrace implies the same |
|
Yes sorry I was trying to say that the I've removed it in a new commit for the sake of clarity. Sorry for the noise! |
|
But this is your test method: The query is not executed. In other words I only got this to fail when I changed that to |
|
Fixed - c799f85 |
A simple unit test illustrating issue HHH-14820 : since Hibernate ORM 6 the custom NamedEnumUserType is only instantiated once (while there aretwo enums configured with this type).
When trying to execute a query that NamedEnumUserType has the last enum class and
Enum.valueOf(...)fails.The test is currently marked with
@Ignoreso it needs to be removed to get a failing result.See the JIRA HHH-14820 issue