Skip to content

Commit 144db69

Browse files
committed
Mention @Version in transaction documentation. (#1652)
Closes #1651.
1 parent 021e11a commit 144db69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/asciidoc/transactions.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Couchbase supports https://docs.couchbase.com/server/current/learn/data/transact
99
- Spring Data Couchbase 5.0.0-M5 or above.
1010
- 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.
1111
- Set spring.main.allow-bean-definition-overriding=true either in application.properties or as a SpringApplicationBuilder property.
12+
- The entity class must have an `@Version Long` property to hold the CAS value of the document.
1213

1314
== Overview
1415
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.

0 commit comments

Comments
 (0)