I'm looking for the way to enable Optimistic locking for Firestore DB document, but seems @Version
annotation doesn't work.
Currently I'm using spring-cloud-gcp-starter-data-firestore
lib for extending FirestoreReactiveRepository
interface repository. I've looked through the spring cloud gcp documentation and found nothing about optimistic locking and data versioning(using for example document's modificatioNumber field).
My be someone knows are there any way to enable, declaratively (using some annotations) or programmatically, optimistic locking for Firestore DB documents using spring libs or some other libs? Thanks.