Skip to content

Commit

Permalink
Fix indent from 2 to 4 spaces in the Mapping page.
Browse files Browse the repository at this point in the history
- `Customized Object Construction` section
- `Registering Spring Converters with the \'JdbcConverter\'` section

Original pull request #1948
  • Loading branch information
fResult authored and schauder committed Nov 25, 2024
1 parent c77a59f commit 3143eaa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/main/antora/modules/ROOT/pages/jdbc/mapping.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class MyJdbcConfiguration extends AbstractJdbcConfiguration {
@Override
protected List<?> userConverters() {
return Arrays.asList(new BooleanToStringConverter(), new StringToBooleanConverter());
return Arrays.asList(new BooleanToStringConverter(), new StringToBooleanConverter());
}
}
Expand Down
18 changes: 9 additions & 9 deletions src/main/antora/modules/ROOT/partials/mapping.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -182,16 +182,16 @@ This works only if the parameter name information is present in the Java `.class
----
class OrderItem {
private @Id final String id;
private final int quantity;
private final double unitPrice;
private @Id final String id;
private final int quantity;
private final double unitPrice;
OrderItem(String id, int quantity, double unitPrice) {
this.id = id;
this.quantity = quantity;
this.unitPrice = unitPrice;
}
OrderItem(String id, int quantity, double unitPrice) {
this.id = id;
this.quantity = quantity;
this.unitPrice = unitPrice;
}
// getters/setters omitted
// getters/setters omitted
}
----

0 comments on commit 3143eaa

Please sign in to comment.