From c833269aa3363a8044c32f0da87f1c508862d5ae Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Fri, 16 Oct 2009 23:14:01 +0000 Subject: [PATCH] polish --- spring-framework-reference/src/validation.xml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/spring-framework-reference/src/validation.xml b/spring-framework-reference/src/validation.xml index 7931f43a5f..3aabf04d70 100644 --- a/spring-framework-reference/src/validation.xml +++ b/spring-framework-reference/src/validation.xml @@ -1599,10 +1599,14 @@ public void testDefaultSpelMappingBehavior() { Registering Explicit Mappings When default mapping rules are not sufficient, explicit mapping rules can be registered by obtaining a MapperBuilder and using it to construct a Mapper. - Explicit mapping rules always override the default. + Explicit mapping rules always override the default: builder = MappingFactory.mappingBuilder(PersonDto.class, Person.class)]]> +MappperBuilder builder = MappingFactory.mappingBuilder(PersonDto.class, Person.class) +builder.addMapping(...); +builder.addMapping(...); +Mapper mapper = builder.getMapper(); +]]>
Mapping between two fields with different names