-
Feb 10th, 2013, 08:50 AM
#1
Spring DATA MONGO 1.2 Optimistic locking
I tried adding @Version annotation to a long field to do versioning of my records with optimistic locking.
It fails each time when I try to create a new entity with this message
org.springframework.dao.OptimisticLockingFailureEx ception: Optimistic lock exception on saving entity: ........
Version # 1
As it is a new object
What am I doing wrong?
What other configuration is required?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules