diff --git a/spring-framework-reference/src/validation.xml b/spring-framework-reference/src/validation.xml
index 42f3959e88e..a0f70568c44 100644
--- a/spring-framework-reference/src/validation.xml
+++ b/spring-framework-reference/src/validation.xml
@@ -1564,30 +1564,14 @@ public class Account {
}
}]]>
- Now mapped between in the following test case:
+ Now mapped in the following service method:
+public void createAccount(CreateAccountDto dto) {
+ Account account = (Account) MapperFactory.getDefaultMapper().map(dto, new Account());
+ // work with the mapped account instance
+}]]>
+
In this example, the number, name, and address properties are automatically mapped since they are present on both the source and target objects.
The AccountDto's address property is a JavaBean, so its nested properties are also recursively mapped.