-
Notifications
You must be signed in to change notification settings - Fork 358
Support custom Enums mappings #1077
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
Comments
Related #787 |
I attempted to reproduce the issue by adding an Enum type with a int value to my entity and registering a If the use case you are seeing this issue on is different and cannot be solved using converters, please provide a Minimimal Reproducable Example, preferable as a Github repository. Make sure to include the database, either as an in memory database or if that is not possible using Testcontainers. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
Assume I have some model, which I want to persist to the database.
where Status is an enum, that looks like this:
The official documentation states:
But what if we need to map it into our custom value, like, in our example, we need to map it into the integer code, not the Enum element name itself. Is there a way to do it?
The text was updated successfully, but these errors were encountered: