builder
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2141 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
f4392efff6
commit
80590934a9
|
|
@ -1602,10 +1602,11 @@ public void testDefaultSpelMappingBehavior() {
|
||||||
Explicit mapping rules always override the default:
|
Explicit mapping rules always override the default:
|
||||||
</para>
|
</para>
|
||||||
<programlisting language="java"><![CDATA[
|
<programlisting language="java"><![CDATA[
|
||||||
MappperBuilder<PersonDto, Person> builder = MappingFactory.mappingBuilder(PersonDto.class, Person.class)
|
Mapper<PersonDto, Person> mapper =
|
||||||
builder.addMapping(...);
|
MappingFactory.mappingBuilder(PersonDto.class, Person.class)
|
||||||
builder.addMapping(...);
|
.addMapping(...)
|
||||||
Mapper<PersonDto, Person> mapper = builder.getMapper();
|
.addMapping(...)
|
||||||
|
.getMapper();
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<section id="mapping.SpelMapper-Explicit-differentFieldNames">
|
<section id="mapping.SpelMapper-Explicit-differentFieldNames">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue