From 2866366b5ce670ff465be52db30e92dd71b77530 Mon Sep 17 00:00:00 2001 From: Michael Reiche <48999328+mikereiche@users.noreply.github.com> Date: Tue, 24 Jan 2023 13:08:16 -0800 Subject: [PATCH] Mention @Version in transaction documentation. (#1652) Closes #1651. --- src/main/asciidoc/transactions.adoc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/asciidoc/transactions.adoc b/src/main/asciidoc/transactions.adoc index 45441858..0ee317a7 100644 --- a/src/main/asciidoc/transactions.adoc +++ b/src/main/asciidoc/transactions.adoc @@ -9,6 +9,7 @@ Couchbase supports https://docs.couchbase.com/server/current/learn/data/transact - Spring Data Couchbase 5.0.0-M5 or above. - NTP should be configured so nodes of the Couchbase cluster are in sync with time. The time being out of sync will not cause incorrect behavior, but can impact metadata cleanup. - Set spring.main.allow-bean-definition-overriding=true either in application.properties or as a SpringApplicationBuilder property. + - The entity class must have an `@Version Long` property to hold the CAS value of the document. == Overview The Spring Data Couchbase template operations insert, find, replace and delete and repository methods that use those calls can participate in a Couchbase Transaction. They can be executed in a transaction by using the @Transactional annotation, the CouchbaseTransactionalOperator, or in the lambda of a Couchbase Transaction.