Hibernate Tip: Map database columns with generated values

Опубликовано: 29 Сентябрь 2024
на канале: Thorben Janssen
1,510
21

Get more recipes like this one in my new book Hibernate Tips: More than 70 solutions to common Hibernate problems: https://goo.gl/XfywNk

The Hibernate Tips series provides quick answers to common questions. This time, I will show you how you can map database columns whose values get generated by the database. That might not sound like an issue. But if you don’t tell Hibernate that the database generates the value, it will not retrieve from the database and you will not see in your application.

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

Like my channel? Subscribe!
➜ http://bit.ly/2cUsid8

Join the free Member Library:
https://goo.gl/dtyIIC

Read the accompanying post: http://www.thoughts-on-java.org/hiber...

Want to connect with me?
Blog: http://www.thoughts-on-java.org/
Twitter:   / thjanssen123  
Facebook:   / thoughtsonjava  
#JPA #Hibernate #Mapping