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:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
----
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
// ...
|
||||
|
||||
Reference in New Issue
Block a user