Skip to content

Mention @Version in transaction documentation. #1652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/asciidoc/transactions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down