How to use optimistic locking with Spring Data MongoDB?

后端 未结 1 1532
梦如初夏
梦如初夏 2021-01-04 08:47

I\'m going through Spring Data MongoDB - Reference Documentation and I\'m finding the examples to be a bit too simplistic.

In particular I\'m trying to understand ho

相关标签:
1条回答
  • 2021-01-04 09:36

    Using @org.springframework.data.annotation.Version on a property should do the trick. I've created DATAMONGO-1275 to improve the documentation on that.

    0 讨论(0)
提交回复
热议问题