Skip to content

Commit 2866366

Browse files
authored
Mention @Version in transaction documentation. (#1652)
Closes #1651.
1 parent 6326317 commit 2866366

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/asciidoc/transactions.adoc

+1
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)