polish
This commit is contained in:
parent
9584a81687
commit
bd0356a712
|
|
@ -1510,11 +1510,11 @@ public class PersonDtoPersonMapper implements Mapper<PersonDto, Person> {
|
|||
</para>
|
||||
</section>
|
||||
<section id="mapping.SpelMapper">
|
||||
<title>General-purpose SpelMapper Implementation</title>
|
||||
<title>General-purpose Object Mapper Implementation</title>
|
||||
<para>
|
||||
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.
|
||||
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.
|
||||
</para>
|
||||
<section id="mapping.SpelMapper-usage">
|
||||
|
|
@ -1610,6 +1610,7 @@ Mapper<PersonDto, Person> mapper =
|
|||
.getMapper();
|
||||
]]>
|
||||
</programlisting>
|
||||
</section>
|
||||
<section id="mapping.SpelMapper-Explicit-differentFieldNames">
|
||||
<title>Mapping between two fields with different names</title>
|
||||
<para>
|
||||
|
|
@ -1691,7 +1692,6 @@ builder.addConditionalMapping("countryCode", "international == 'true'");]]>
|
|||
builder.setAutoMappingEnabled(false);]]>
|
||||
</programlisting>
|
||||
</section>
|
||||
</section>
|
||||
<section id="mapping.SpelMapper-CustomConverter">
|
||||
<title>Registering Custom Mapping Converters</title>
|
||||
<para>
|
||||
|
|
|
|||
Loading…
Reference in New Issue