Top "Optimistic-locking" questions

When coordinating updates from multiple database sessions, optimistic locking is a strategy that assumes all updates can complete without conflict.

Optimistic vs. Pessimistic locking

I understand the differences between optimistic and pessimistic locking. Now could someone explain to me when I would use either …

sql-server locking optimistic-locking pessimistic-locking
Implementing Optimistic lock using Hibernate and Spring

I am trying to implement Optimistic locking in-order to avoid lost update situation. In my application when two user fetch …

spring hibernate optimistic-locking optimistic-concurrency
Optimistic Locking by concrete (Java) example

I have spent my morning reading all the top articles that Google churns up on optimistic locking, and for the …

java concurrency locking optimistic-locking
How to handle JPA ObjectOptimisticLockException properly for multiple simultaneous transaction requests?

So, I was working on a simple Spring MVC + JPA (hibernate) project where there are Users who can makes Posts …

java hibernate jpa transactions optimistic-locking
Optimistic Locking in Hibernate by default

I have one question about optimistic locking in Hibernate. I am trying to go deep inside optimistic locking with Hibernate, …

hibernate optimistic-locking
How to do optimistic locking in hibernate

I am completely new to Hibernate and Spring and in my attempt to learn Spring, Hibernate, Maven etc I only …

java hibernate locking optimistic-locking
Hibernate (JPA): how to handle StaleObjectStateException when several object has been modified and commited

Consider the scenario: A Db transaction envolving more than one row from different tables with versioning. For example: A shopLists …

hibernate optimistic-locking database-versioning database-concurrency
How to use the Hibernate optimistic locking version property on the front end?

Optimistic locking using the version attribute for an entity works fine and is easy to implement: <version property="VERSION" …

java hibernate web-applications optimistic-locking
Does DynamoDB have locking by default?

I'm looking over the dynamo documentation and it looks like they have optimistic. I'm wondering if this is used by …

locking amazon-dynamodb optimistic-locking
Spring Optimistic Locking:How to retry transactional method till commit is successful

I use Spring 2.5 and Hibernate JPA implementation with Java and "container" managed Transactions. I have a "after user commit" method …

java spring transactions aspectj optimistic-locking