From 7e3b54a5bbd7e427860b37853bd3c463468469a9 Mon Sep 17 00:00:00 2001 From: Joern Muehlencord Date: Sat, 1 May 2021 15:16:21 +0200 Subject: [PATCH] updated documentation --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 357572d..0472083 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,11 @@ Additional DefaultAccessorNamingStrategy to support fluent API withXYZ setters. Mapstruct default naming strategy detects the methods `withFirstName` and `withLastName` (see example below) as extra -target fields are therefore cause an error, when the mapper is annotated with +target fields and therefore cause an error, when the mapper is annotated with `unmappedTargetPolicy = ReportingPolicy.ERROR`. +The additional naming strategy makes Mapstruct ignore the withXYZ setters. + ## Installation To use the extended naming strategy, just include it as project dependency alongside with mapstruct.