Skip to content

Commit 8dcb2a7

Browse files
committed
Merge pull request #29048 from 1993heqiang
* pr/29048: Fix typo in data-access section Closes gh-29048
2 parents 0389fcc + 111a990 commit 8dcb2a7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/docs/asciidoc/data-access.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ programming arrangements as the following listing shows:
15201520

15211521
Note that there are special considerations for the returned `Publisher` with regards to
15221522
Reactive Streams cancellation signals. See the <<tx-prog-operator-cancel>> section under
1523-
"Using the TransactionOperator" for more details.
1523+
"Using the TransactionalOperator" for more details.
15241524

15251525

15261526
[[transaction-declarative-annotations-method-visibility]]
@@ -2474,32 +2474,32 @@ different settings (for example, a different isolation level), you need to creat
24742474
two distinct `TransactionTemplate` instances.
24752475

24762476
[[tx-prog-operator]]
2477-
==== Using the `TransactionOperator`
2477+
==== Using the `TransactionalOperator`
24782478

2479-
The `TransactionOperator` follows an operator design that is similar to other reactive
2479+
The `TransactionalOperator` follows an operator design that is similar to other reactive
24802480
operators. It uses a callback approach (to free application code from having to do the
24812481
boilerplate acquisition and release transactional resources) and results in code that is
24822482
intention driven, in that your code focuses solely on what you want to do.
24832483

2484-
NOTE: As the examples that follow show, using the `TransactionOperator` absolutely
2484+
NOTE: As the examples that follow show, using the `TransactionalOperator` absolutely
24852485
couples you to Spring's transaction infrastructure and APIs. Whether or not programmatic
24862486
transaction management is suitable for your development needs is a decision that you have
24872487
to make yourself.
24882488

24892489
Application code that must run in a transactional context and that explicitly uses
2490-
the `TransactionOperator` resembles the next example:
2490+
the `TransactionalOperator` resembles the next example:
24912491

24922492
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
24932493
.Java
24942494
----
24952495
public class SimpleService implements Service {
24962496
2497-
// single TransactionOperator shared amongst all methods in this instance
2497+
// single TransactionalOperator shared amongst all methods in this instance
24982498
private final TransactionalOperator transactionalOperator;
24992499
25002500
// use constructor-injection to supply the ReactiveTransactionManager
25012501
public SimpleService(ReactiveTransactionManager transactionManager) {
2502-
this.transactionOperator = TransactionalOperator.create(transactionManager);
2502+
this.transactionalOperator = TransactionalOperator.create(transactionManager);
25032503
}
25042504
25052505
public Mono<Object> someServiceMethod() {

0 commit comments

Comments
 (0)