Hibernate Tip: How to use a custom database sequence

preview_player
Показать описание
Get more recipes like this one in my new book Hibernate Tips: More than 70 solutions to common Hibernate problems:

The Hibernate Tips series provides quick answers to common questions. This week, I show you how to use a custom database sequence instead of Hibernate's default one.
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:

Post:

Learn more:

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

Sir, Why hibernate is select twice for nextval from author seq ???

mohamedrawoof
Автор

sir im having a problem with my Sequence after saving the object in db the method save returns the new id for the obj
but its not the same id which is assigned to the obj in hibernate
like in db the primary key = 15
and the returned id value will be a random number how do i fix this

theworldminusraphtheninjat