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 map them with Hibernate. They provide a strongly typed way to model an attribute that has one out of a list of defined values. The format of a book is a typical example of such an enum. Supported values could be hardcover, paperback, and ebook.
With JPA and Hibernate, you can map enums in different ways. You can:
1. use the standard mappings to a number or a String,
2. create a customized mapping to any basic type supported by Hibernate,
3. define a custom mapping to a database-specific type, like PostgreSQLs enum type.
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:
[ Ссылка ]
Read the accompanying post: [ Ссылка ]
Want to connect with me?
Blog: [ Ссылка ]
Twitter: [ Ссылка ]
Facebook: [ Ссылка ]
#enum #mapping #hibernate
Ещё видео!