optimistic-locking
simple optimistic lock question in jpa/spring/hibernate
I am trying to implement a basic optimistic lock mechanism with a retry interceptor. So the thing is there is a object Quiz with a property responsesCount. In case that there is a optimistic Lock exc[详细]
2023-02-14 06:24 分类:问答Version property of Parent isn't incrementing if I update child
I\'m using JPA 2 with Hibernate 3.x. I have two Entity objects Foo and Bar and the relation is like this -[详细]
2023-02-13 01:51 分类:问答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.[详细]
2023-02-07 05:05 分类:问答Is it possible to column-level optimistic locking in JPA toplink?
I studied about optimistic locking in JPA, adding @Version annotation with version column in DB and how it is managed by EntityManager etc[详细]
2023-02-01 06:57 分类:问答How to overcome StaleObjectStateException in grails Service
I\'ve introduced a TransactionService that I use in my controllers to execute optimistic transactions. It should[详细]
2023-01-29 01:08 分类:问答How to do concurrent modification testing for grails application
I\'d like to run tests that simulate users modifying certain data at the same time for a grails application.[详细]
2023-01-24 12:50 分类:问答how to raise OptimisticLockException
Unable to catch optimistic lock exception. one way to raiseOptimisticLockException is by using em.flush()[详细]
2023-01-17 17:33 分类:问答Server-side optimistic locking in a ReSTful app: handling asynchronous requests from the same client
I am working on a project that is in transition from proof-of-concept to something worthy of a pilot project. One of the key improvements for this phase of development is to move away from the current[详细]
2023-01-11 18:58 分类:问答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 that updates data in background and need to be committed reg[详细]
2023-01-05 07:51 分类:问答ActiveRecord::Base.connection.update(sql) sometimes returns incorrect number of affected rows
I have a production web site with the following environment: Rails 2.3.5 MySQL Server 5.1.33 Enterprise Ruby 1.8.6 (2008-08-11 patchlevel 287) [x86_64-linux][详细]
2023-01-05 07:42 分类:问答