Browse Source

Fix indent from 2 to 4 spaces in the `Mapping` page.

- `Customized Object Construction` section
- `Registering Spring Converters with the \'JdbcConverter\'` section

Original pull request #1948
pull/1954/head
fResult 1 year ago committed by Jens Schauder
parent
commit
3143eaaf12
No known key found for this signature in database
GPG Key ID: 74F6C554AE971567
  1. 2
      src/main/antora/modules/ROOT/pages/jdbc/mapping.adoc
  2. 18
      src/main/antora/modules/ROOT/partials/mapping.adoc

2
src/main/antora/modules/ROOT/pages/jdbc/mapping.adoc

@ -197,7 +197,7 @@ class MyJdbcConfiguration extends AbstractJdbcConfiguration { @@ -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());
}
}

18
src/main/antora/modules/ROOT/partials/mapping.adoc

@ -182,16 +182,16 @@ This works only if the parameter name information is present in the Java `.class @@ -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
}
----

Loading…
Cancel
Save