Add something to easily handle the mapping of Enum in database
See original GitHub issueHello.
I wonder if it would be possible to add something to easily handle mapping of Enum
type in database ? A mapper which map an Enum
Kotlin field into a VARCHAR
database field.
Maybe adding a specific SqlType
for the enums ?
What do you think about that ?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Add something to easily handle the mapping of Enum ... - GitHub
A mapper which map an Enum Kotlin field into a VARCHAR database field ... Add something to easily handle the mapping of Enum...
Read more >Enum Mappings with Hibernate - The Complete Guide
Let me show you how to use Hibernate's standard enum mappings, create a flexible, custom mapping and map db-specific enum types.
Read more >The best way to map an Enum Type with JPA and Hibernate
To map the Enum to a String database column type, you need to specify the EnumType.STRING value when using the @Enumerated annotation.
Read more >Ways to save enums in database - Stack Overflow
Show activity on this post. What is the best way to save enums into a database? I know Java provides name() and valueOf()...
Read more >Enum Mappings with Hibernate – The Complete Guide
In today's video I will talk about Enum mappings with JPA and Hibernate...Most developers use enums in their domain models. You can easily...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We can add a
SqlType
implementation to handle enums:Usage:
Ktorm 2.7 is released.