From 422821f3cf63ecde9a23cbcd688039a6c1c09a14 Mon Sep 17 00:00:00 2001 From: Dominik Gruntz Date: Tue, 1 Nov 2016 17:24:41 +0100 Subject: [PATCH] #945 changes s.getLongProp() to s.getLongProperty() In the mapping no source name is specified for this property, so the name longProperty is used --- .../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 598619247..8ef7ef7db 100644 --- a/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc +++ b/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc @@ -1493,7 +1493,7 @@ public interface SourceTargetMapper { ---- ==== -If `s.getStringProp() == null`, then the target property `stringProperty` will be set to `"undefined"` instead of applying the value from `s.getStringProp()`. If `s.getLongProp() == null`, then the target property `longProperty` will be set to `-1`. +If `s.getStringProp() == null`, then the target property `stringProperty` will be set to `"undefined"` instead of applying the value from `s.getStringProp()`. If `s.getLongProperty() == null`, then the target property `longProperty` will be set to `-1`. The String `"Constant Value"` is set as is to the target property `stringConstant`. The value `"3001"` is type-converted to the `Long` (wrapper) class of target property `longWrapperConstant`. Date properties also require a date format. The constant `"jack-jill-tom"` demonstrates how the hand-written class `StringListMapper` is invoked to map the dash-separated list into a `List`. [[expressions]]