Hibernate Tip: How to map an Enum to a database column

preview_player
Показать описание

The Hibernate Tips series provides quick answers to common questions. This time, I will show you how to map a Java Enum to a database column. That's one of the basic JPA and Hibernate mappings and you should know the 2 standard options with their advantages and disadvantages.

If you like this video, please give me your thumbs up and share it with your friends and co-workers.

Like my channel? Subscribe!

Join the free Member Library:

Want to connect with me?
Рекомендации по теме
Комментарии
Автор

Crips explanation got the concept in a minute thanks Thorben !

anm_
Автор

This video was published sometime ago, but I hoe you can answer a question, how you map an enumeration with custom values, like : enum RolTypes{. ADMIN(0, "admin"), MANAGER(10, "manager", etc... } this apply the same?

jrrobles