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; } // ...