-
Notifications
You must be signed in to change notification settings - Fork 3.6k
HHH-16311 - Migrate away from UserType for enum handling #6246
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
Does this eliminate all usages of |
Well, that's the question isn't it ;) As I said, this is all just a quick proof. Still need to analyse all uses of One use-case that comes to mind immediately is the SQM handling of enum value names as literals (i.e. |
Actually this was really easy to test. There were just a few errors - looking through them |
this is one of the things that was causing me a lot of pain when I tried to handle mapping to Postgres enum types. |
As a quick test I changed |
This latest push should be pretty complete. One change I'll probably revert is that this push limits "enum short name" handling to just implicit and explicit |
...ate/orm/test/annotations/enumerated/mappedSuperclass/EnumeratedWithMappedSuperclassTest.java
Fixed
Show fixed
Hide fixed
OK then, I'll try making #6232 work on top of this patch, and see if it helps. |
See especially I'm not yet sure what to think of the test failures from the last push. They stem from the fact that we now interpret mappings like I have not yet looked into the Oracle test failure from the second push |
Thanks for your pull request! This pull request appears to follow the contribution rules. › This message was automatically generated. |
The Oracle failure is ultimately https://hibernate.atlassian.net/browse/HHH-16333 Assuming all tests pass (other than the one failure on Oracle) in this latest push, I'm going to integrate this upstream |
Integrated upstream |
Simple proof for handling enum values with the UserType machinery