From 160549a788b5ff607ce4d855602b6b6e8d4c3576 Mon Sep 17 00:00:00 2001 From: Sjaak Derksen Date: Sun, 10 Feb 2019 22:08:38 +0100 Subject: [PATCH] #1142 update documentation (#1710) * #1142 update documentation * #1142 comment --- .../src/main/asciidoc/mapstruct-reference-guide.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc b/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc index 46a996353..79ce0dc09 100644 --- a/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc +++ b/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc @@ -568,7 +568,7 @@ public interface CarMapper { The generated code of the `updateCarFromDto()` method will update the passed `Car` instance with the properties from the given `CarDto` object. There may be only one parameter marked as mapping target. Instead of `void` you may also set the method's return type to the type of the target parameter, which will cause the generated implementation to update the passed mapping target and return it as well. This allows for fluent invocations of mapping methods. -Collection- or map-typed properties of the target bean to be updated will be cleared and then populated with the values from the corresponding source collection or map. +For `CollectionMappingStrategy.ACCESSOR_ONLY` Collection- or map-typed properties of the target bean to be updated will be cleared and then populated with the values from the corresponding source collection or map. Otherwise, For `CollectionMappingStrategy.ADDER_PREFERRED` or `CollectionMappingStrategy.TARGET_IMMUTABLE` the target will not be cleared and the values will be populated immediately. [[direct-field-mappings]] === Mappings with direct field access