diff --git a/spring-framework-reference/src/validation.xml b/spring-framework-reference/src/validation.xml
index b9bb40e695..301a7822cf 100644
--- a/spring-framework-reference/src/validation.xml
+++ b/spring-framework-reference/src/validation.xml
@@ -1505,8 +1505,8 @@ public class PersonDtoPersonMapper implements Mapper<PersonDto, Person> {
}
- In this trivial example, the Mapper simply maps the PersonDto's name property to the Person's firstName and lastName properties.
- The fully mapped Person object is then returned.
+ In this trivial example, the Mapper maps the PersonDto's name property to the Person's firstName and lastName properties.
+ The fully mapped Person object is returned.
@@ -1529,7 +1529,7 @@ mapper.map(aSource, aTarget);
By default, SpelMapper will map the fields on the source and target that have the same names.
If the field types differ, the mapping system will attempt a type coersion using Spring 3's type conversion system.
- Nested bean properties are mapped recursively using the same algorithm.
+ Nested bean properties are mapped recursively.
Any mapping failures will trigger a MappingException to be thrown.
If there are multiple failures, they will be collected and returned in the MappingException thrown to the caller.
@@ -1616,8 +1616,8 @@ mapper.addMapping("name", "fullName");
]]>
- In this example, the name property will be mapped to the fullName property when the mapper is executed.
- No default mapping will be performed for the name since an explicit mapping rule has been configured for this property.
+ In this example, the name field will be mapped to the fullName field when the mapper is executed.
+ No default mapping will be performed for name since an explicit mapping rule has been configured for this field.
Forcing Explicit Mappings
@@ -1631,7 +1631,7 @@ mapper.setAutoMappingEnabled(false);
- Registering Custom Field Converters
+ Registering Custom Mapping Converters
Sometimes you need to apply field specific type conversion or data transformation logic when mapping a value.
Do this by registering a converter with a Mapping:
@@ -1673,7 +1673,7 @@ mapper.getConverterRegistry().addConverter(new Converter() {
]]>
- The example Converter above will be invoked anytime a String property is mapped to a Date property.
+ The example Converter above will be invoked anytime a String field is mapped to a Date field.
@@ -1698,7 +1698,7 @@ mapper.addNestedMapper(new Mapper() {
- Registering New Mappable Types
+ Registering Custom Mappable Types
By default, SpelMapper can map between JavaBean (Object), Collection, Array, and Map object structures.
The supported set of MappableTypes is extensible.