Skip to content
Advertisement

Tag: optimistic-locking

How does Hibernate do row version check for Optimistic Locking before committing the transaction

When before committing the current transaction hibernate checks the version of the row, it should issue an sql select statement for fetching ithe row. Assume that after issuing that select statement hibernate finds out that the row version is not changed, hence it should proceed with committing the transaction. I’m wondering how hibernate can be sure that in time slot

Advertisement