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