Skip to content

Commit 5f661f1

Browse files
quaffsbrannen
authored andcommitted
Fix typos for validateExistingTransaction
Closes gh-36767 Signed-off-by: Yanming Zhou <zhouyanming@gmail.com> (cherry picked from commit cfb8dc6)
1 parent b013797 commit 5f661f1

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

framework-docs/modules/ROOT/pages/data-access/transaction/declarative/tx-propagation.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ where all the underlying resources have to participate in the service-level tran
2222

2323
NOTE: By default, a participating transaction joins the characteristics of the outer scope,
2424
silently ignoring the local isolation level, timeout value, or read-only flag (if any).
25-
Consider switching the `validateExistingTransactions` flag to `true` on your transaction
25+
Consider switching the `validateExistingTransaction` flag to `true` on your transaction
2626
manager if you want isolation level declarations to be rejected when participating in
2727
an existing transaction with a different isolation level. This non-lenient mode also
2828
rejects read-only mismatches (that is, an inner read-write transaction that tries to participate

spring-tx/src/main/java/org/springframework/transaction/TransactionDefinition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ default int getPropagationBehavior() {
211211
* to match the values of the same constants on {@link java.sql.Connection}.
212212
* <p>Exclusively designed for use with {@link #PROPAGATION_REQUIRED} or
213213
* {@link #PROPAGATION_REQUIRES_NEW} since it only applies to newly started
214-
* transactions. Consider switching the "validateExistingTransactions" flag to
214+
* transactions. Consider switching the "validateExistingTransaction" flag to
215215
* "true" on your transaction manager if you'd like isolation level declarations
216216
* to get rejected when participating in an existing transaction with a different
217217
* isolation level.

spring-tx/src/main/java/org/springframework/transaction/annotation/Transactional.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
* <p>Defaults to {@link Isolation#DEFAULT}.
180180
* <p>Exclusively designed for use with {@link Propagation#REQUIRED} or
181181
* {@link Propagation#REQUIRES_NEW} since it only applies to newly started
182-
* transactions. Consider switching the "validateExistingTransactions" flag to
182+
* transactions. Consider switching the "validateExistingTransaction" flag to
183183
* "true" on your transaction manager if you'd like isolation level declarations
184184
* to get rejected when participating in an existing transaction with a different
185185
* isolation level.

spring-tx/src/main/java/org/springframework/transaction/support/DefaultTransactionDefinition.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public final void setPropagationBehaviorName(String constantName) throws Illegal
152152
* in the TransactionDefinition interface. Default is PROPAGATION_REQUIRED.
153153
* <p>Exclusively designed for use with {@link #PROPAGATION_REQUIRED} or
154154
* {@link #PROPAGATION_REQUIRES_NEW} since it only applies to newly started
155-
* transactions. Consider switching the "validateExistingTransactions" flag to
155+
* transactions. Consider switching the "validateExistingTransaction" flag to
156156
* "true" on your transaction manager if you'd like isolation level declarations
157157
* to get rejected when participating in an existing transaction with a different
158158
* isolation level.
@@ -194,7 +194,7 @@ public final void setIsolationLevelName(String constantName) throws IllegalArgum
194194
* in the TransactionDefinition interface. Default is ISOLATION_DEFAULT.
195195
* <p>Exclusively designed for use with {@link #PROPAGATION_REQUIRED} or
196196
* {@link #PROPAGATION_REQUIRES_NEW} since it only applies to newly started
197-
* transactions. Consider switching the "validateExistingTransactions" flag to
197+
* transactions. Consider switching the "validateExistingTransaction" flag to
198198
* "true" on your transaction manager if you'd like isolation level declarations
199199
* to get rejected when participating in an existing transaction with a different
200200
* isolation level.

0 commit comments

Comments
 (0)