mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#2929 Improve documentation for BeanMapping#ignoreByDefault
This commit is contained in:
parent
4b43f9079d
commit
dd5ac3b637
@ -40,6 +40,7 @@ The property name as defined in the http://www.oracle.com/technetwork/java/javas
|
|||||||
[TIP]
|
[TIP]
|
||||||
====
|
====
|
||||||
By means of the `@BeanMapping(ignoreByDefault = true)` the default behavior will be *explicit mapping*, meaning that all mappings have to be specified by means of the `@Mapping` and no warnings will be issued on missing target properties.
|
By means of the `@BeanMapping(ignoreByDefault = true)` the default behavior will be *explicit mapping*, meaning that all mappings have to be specified by means of the `@Mapping` and no warnings will be issued on missing target properties.
|
||||||
|
This allows to ignore all fields, except the ones that are explicitly defined through `@Mapping`.
|
||||||
====
|
====
|
||||||
[TIP]
|
[TIP]
|
||||||
====
|
====
|
||||||
|
Loading…
x
Reference in New Issue
Block a user