Top "Optimistic-locking" questions

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

How to code optimistic and pessimistic locking from java code

I know what optimistic and pessimistic locking is, but when you write a java code how do you do it? …

java database jdbc optimistic-locking pessimistic-locking
Retry mechanism for optimistic locking (spring data + JPA)

We decided on using optimistic locking in our web application in order to increase concurrency and without the using of …

java spring hibernate jpa optimistic-locking
Can I add a condition to CakePHP's update statement?

Since there doesn't seem to be any support for optimistic locking in CakePHP, I'm taking a stab at building a …

php cakephp optimistic-locking
How to handle org.eclipse.persistence.exceptions.OptimisticLockExceptio

I want to handle concurrent execution by using Optimistic Locking. I have included @Version annotation in my entity class. In …

jpa locking eclipselink optimistic-locking optimistic-concurrency
Which HTTP status code to use to reject a PUT due to optimistic locking failure

Assume I'd like to implement some kind of optimistic locking and use ETags to indicate the most up to date …

http rest web optimistic-locking
JPA: OptimisticLockException and Cascading

In my current project I use Spring Data JPA with Hibernate but consider this as a more general question that …

jpa optimistic-locking
How do I avoid a race condition in my Rails app?

I have a really simple Rails application that allows users to register their attendance on a set of courses. The …

ruby-on-rails database activerecord optimistic-locking
Recovering from hibernate optimistic locking exception

I have a method like this: @Transactional(propagation = Propagation.REQUIRES_NEW) public void doSomeWork(){ Entity = entity = dao.loadEntity(); // do some …

java spring hibernate optimistic-locking
OptimisticLockingFailureException updating step execution after commit failure in Spring Batch

I am performing some integration testing for my application in which I am trying to force an exception whenever there …

java spring spring-batch jta optimistic-locking