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
This commit is contained in:
fResult
2024-11-24 03:04:56 +07:00
committed by Jens Schauder
parent c77a59f3ac
commit 3143eaaf12
2 changed files with 10 additions and 10 deletions

View File

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

View File

@@ -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
}
----