-
Notifications
You must be signed in to change notification settings - Fork 3.6k
HHH-16125 POC #6232
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
HHH-16125 POC #6232
Conversation
Hmm, you didn't even mention I really did try to move away from all of this for enum mapping in 6.0. There were a few hold ups. One was write-path handling, which is migrated to SQL AST now in 6.2. Another was envers. But maybe with the write-path changes this is possible now. I'll play around with it a bit and see if I can make any quick headway |
For what it is worth, a quick prototype using a Unfortunately though, quite a bit of code has been added in the interim that assumes enums are mapped the way they are so there would be work to full clean that up |
I pushed a PR with the simple work - #6246 The crux is |
oh, awesome, lemme take a look.... |
One thing we should nail down is when enums are eligible for handling as native database enum types. E.g. I don't think it makes any sense for converted enums to be map-able using native database enum types. So probably just:
And perhaps, once we move from HCANN to Jandex -
|
Rrrrmmmmm I'm not sure I agree, but to be honest I had not really thought it through. I kind-of just assumed that |
I guess it depends how you view We can discuss
|
Ah, right, yeah,sure, I agree/ |
Out of date. |
[Failed] proof of concept implementation of PostgreSQL
enum
support for HHH-16125.The current implementation of enum support in Hibernate is known to be garbage, involving a
UserType
and aBasicValueConverter
, and this makes it close to impossible to implement this functionality.