mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#945 changes s.getLongProp() to s.getLongProperty()
In the mapping no source name is specified for this property, so the name longProperty is used
This commit is contained in:
parent
81b4535aad
commit
422821f3cf
@ -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<String>`.
|
||||
|
||||
[[expressions]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user