This commit is contained in:
Keith Donald 2009-10-17 05:49:28 +00:00
parent 9584a81687
commit bd0356a712
1 changed files with 65 additions and 65 deletions

View File

@ -1510,11 +1510,11 @@ public class PersonDtoPersonMapper implements Mapper<PersonDto, Person> {
</para> </para>
</section> </section>
<section id="mapping.SpelMapper"> <section id="mapping.SpelMapper">
<title>General-purpose SpelMapper Implementation</title> <title>General-purpose Object Mapper Implementation</title>
<para> <para>
A general purpose object-to-object mapping system exists in the <classname>org.springframework.mapping.support</classname> package. A general purpose object-to-object mapping system exists in the <classname>org.springframework.mapping.support</classname> package.
Built on the Spring Expression Language (SpEL), this system is capable of mapping between a variety of object types, including JavaBeans, Arrays, Collections, and Maps. Built on the Spring Expression Language (SpEL), this system is capable of mapping between a variety of object types, including JavaBeans, Arrays, Collections, and Maps.
It can perform field-to-field, field-to-multi-field, multi-field to field, and conditional mappings. It can perform field-to-field, field-to-multi-field, multi-field-to-field, and conditional mappings.
It also can carry out type conversion and recursive mapping, which are often required with rich object models. It also can carry out type conversion and recursive mapping, which are often required with rich object models.
</para> </para>
<section id="mapping.SpelMapper-usage"> <section id="mapping.SpelMapper-usage">
@ -1610,6 +1610,7 @@ Mapper<PersonDto, Person> mapper =
.getMapper(); .getMapper();
]]> ]]>
</programlisting> </programlisting>
</section>
<section id="mapping.SpelMapper-Explicit-differentFieldNames"> <section id="mapping.SpelMapper-Explicit-differentFieldNames">
<title>Mapping between two fields with different names</title> <title>Mapping between two fields with different names</title>
<para> <para>
@ -1691,7 +1692,6 @@ builder.addConditionalMapping("countryCode", "international == 'true'");]]>
builder.setAutoMappingEnabled(false);]]> builder.setAutoMappingEnabled(false);]]>
</programlisting> </programlisting>
</section> </section>
</section>
<section id="mapping.SpelMapper-CustomConverter"> <section id="mapping.SpelMapper-CustomConverter">
<title>Registering Custom Mapping Converters</title> <title>Registering Custom Mapping Converters</title>
<para> <para>