From e4ba4770361643af637484773bff86ab29f328e8 Mon Sep 17 00:00:00 2001 From: Jens Schauder Date: Mon, 25 Nov 2024 14:41:49 +0100 Subject: [PATCH] Fix indentation in code examples. Fixes the indentation to 4 characters in all code examples in *.adoc files that so far used tabs. Original pull request #1948 --- .../antora/modules/ROOT/pages/jdbc/events.adoc | 14 +++++++------- .../antora/modules/ROOT/pages/jdbc/mapping.adoc | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/antora/modules/ROOT/pages/jdbc/events.adoc b/src/main/antora/modules/ROOT/pages/jdbc/events.adoc index 34532e7a..81230251 100644 --- a/src/main/antora/modules/ROOT/pages/jdbc/events.adoc +++ b/src/main/antora/modules/ROOT/pages/jdbc/events.adoc @@ -18,11 +18,11 @@ For example, the following listener gets invoked before an aggregate gets saved: @Bean ApplicationListener> loggingSaves() { - return event -> { + return event -> { - Object entity = event.getEntity(); - LOG.info("{} is getting saved.", entity); - }; + Object entity = event.getEntity(); + LOG.info("{} is getting saved.", entity); + }; } ---- @@ -33,10 +33,10 @@ Callback methods will only get invoked for events related to the domain type and ---- class PersonLoadListener extends AbstractRelationalEventListener { - @Override - protected void onAfterLoad(AfterLoadEvent personLoad) { + @Override + protected void onAfterLoad(AfterLoadEvent personLoad) { LOG.info(personLoad.getEntity()); - } + } } ---- diff --git a/src/main/antora/modules/ROOT/pages/jdbc/mapping.adoc b/src/main/antora/modules/ROOT/pages/jdbc/mapping.adoc index 2c17ef31..c3bba01c 100644 --- a/src/main/antora/modules/ROOT/pages/jdbc/mapping.adoc +++ b/src/main/antora/modules/ROOT/pages/jdbc/mapping.adoc @@ -118,8 +118,8 @@ If you want a completely different way of naming these back references you may i [source,java] ---- class Person { - @Id long id; - AggregateReference bestFriend; + @Id long id; + AggregateReference bestFriend; } // ...