From 4c28266eb627c8726af12c4e7ac78118cbf9439b Mon Sep 17 00:00:00 2001 From: Sviatoslav Hryb Date: Sun, 30 May 2021 14:48:31 +0300 Subject: [PATCH] Fix @Transactional docs regarding method visibility Closes gh-27001 --- src/docs/asciidoc/data-access.adoc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/docs/asciidoc/data-access.adoc b/src/docs/asciidoc/data-access.adoc index 104eb810ba..6284f7fb6c 100644 --- a/src/docs/asciidoc/data-access.adoc +++ b/src/docs/asciidoc/data-access.adoc @@ -1314,19 +1314,19 @@ Consider the following class definition: @Transactional public class DefaultFooService implements FooService { - Foo getFoo(String fooName) { + public Foo getFoo(String fooName) { // ... } - Foo getFoo(String fooName, String barName) { + public Foo getFoo(String fooName, String barName) { // ... } - void insertFoo(Foo foo) { + public void insertFoo(Foo foo) { // ... } - void updateFoo(Foo foo) { + public void updateFoo(Foo foo) { // ... } } @@ -1356,7 +1356,7 @@ Consider the following class definition: } ---- -Used at the class level as above, the annotation indicates a default for all methods +Used at the class level as above, the annotation indicates a default for all public methods of the declaring class (as well as its subclasses). Alternatively, each method can get annotated individually. Note that a class-level annotation does not apply to ancestor classes up the class hierarchy; in such a scenario, methods need to be @@ -1420,19 +1420,19 @@ programming arrangements as the following listing shows: @Transactional public class DefaultFooService implements FooService { - Publisher getFoo(String fooName) { + public Publisher getFoo(String fooName) { // ... } - Mono getFoo(String fooName, String barName) { + public Mono getFoo(String fooName, String barName) { // ... } - Mono insertFoo(Foo foo) { + public Mono insertFoo(Foo foo) { // ... } - Mono updateFoo(Foo foo) { + public Mono updateFoo(Foo foo) { // ... } }