Hibernate Tip: How to use a timestamp for versioning and optimistic locking

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

When you had to map a legacy table model in one of your projects, you probably know this situation. Instead of a numeric version column, the table model uses the timestamp of the last update. I don’t recommend using this approach because numeric versioning is much more efficient. But if you have to, you can also use a timestamp for versioning with JPA and Hibernate.

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?
#Hibernate
#JPA
#HibernateTips
Рекомендации по теме
Комментарии
Автор

Very useful details and nicely explained.

skkark