Skip to content

Commit

Permalink
Fix indentation in code examples.
Browse files Browse the repository at this point in the history
Fixes the indentation to 4 characters in all code examples in *.adoc files that so far used tabs.

Original pull request #1948
  • Loading branch information
schauder committed Nov 25, 2024
1 parent e651a56 commit e4ba477
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/main/antora/modules/ROOT/pages/jdbc/events.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
}
----

Expand All @@ -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());
}
}
}
----

Expand Down
4 changes: 2 additions & 2 deletions src/main/antora/modules/ROOT/pages/jdbc/mapping.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
// ...
Expand Down

0 comments on commit e4ba477

Please sign in to comment.