Announcement Announcement Module
Collapse
No announcement yet.
Spring DATA MONGO 1.2 Optimistic locking Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?
Working...
X