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
This commit is contained in:
Jens Schauder
2024-11-25 14:41:49 +01:00
parent e651a565a1
commit e4ba477036
2 changed files with 9 additions and 9 deletions

View File

@@ -18,11 +18,11 @@ For example, the following listener gets invoked before an aggregate gets saved:
@Bean
ApplicationListener<BeforeSaveEvent<Object>> 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<Person> {
@Override
protected void onAfterLoad(AfterLoadEvent<Person> personLoad) {
@Override
protected void onAfterLoad(AfterLoadEvent<Person> personLoad) {
LOG.info(personLoad.getEntity());
}
}
}
----

View File

@@ -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<Person, Long> bestFriend;
@Id long id;
AggregateReference<Person, Long> bestFriend;
}
// ...