mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#2709 Corrected description for example demonstrating default expression
This commit is contained in:
parent
0f297ae60f
commit
0a8e9b738c
@ -88,7 +88,7 @@ Default expressions are a combination of default values and expressions. They wi
|
|||||||
|
|
||||||
The same warnings and restrictions apply to default expressions that apply to expressions. Only Java is supported, and MapStruct will not validate the expression at generation-time.
|
The same warnings and restrictions apply to default expressions that apply to expressions. Only Java is supported, and MapStruct will not validate the expression at generation-time.
|
||||||
|
|
||||||
The example below demonstrates how two source properties can be mapped to one target:
|
The example below demonstrates how a default expression can be used to set a value when the source attribute is not present (e.g. is `null`):
|
||||||
|
|
||||||
.Mapping method using a default expression
|
.Mapping method using a default expression
|
||||||
====
|
====
|
||||||
|
Loading…
x
Reference in New Issue
Block a user