updated documentation

This commit is contained in:
2021-05-01 15:16:21 +02:00
parent fa0de02716
commit 7e3b54a5bb

View File

@ -3,9 +3,11 @@
Additional DefaultAccessorNamingStrategy to support fluent API withXYZ setters. Additional DefaultAccessorNamingStrategy to support fluent API withXYZ setters.
Mapstruct default naming strategy detects the methods `withFirstName` and `withLastName` (see example below) as extra 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`. `unmappedTargetPolicy = ReportingPolicy.ERROR`.
The additional naming strategy makes Mapstruct ignore the withXYZ setters.
## Installation ## Installation
To use the extended naming strategy, just include it as project dependency alongside with mapstruct. To use the extended naming strategy, just include it as project dependency alongside with mapstruct.