mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#3638 Remove deprecation note of enum mapping via @Mapping
This commit is contained in:
parent
0f24633d04
commit
81ca739040
@ -20,7 +20,7 @@ import org.mapstruct.control.MappingControl;
|
||||
import static org.mapstruct.NullValueCheckStrategy.ON_IMPLICIT_CONVERSION;
|
||||
|
||||
/**
|
||||
* Configures the mapping of one bean attribute or enum constant.
|
||||
* Configures the mapping of one bean attribute.
|
||||
* <p>
|
||||
* The name of the mapped attribute or constant is to be specified via {@link #target()}. For mapped bean attributes it
|
||||
* is assumed by default that the attribute has the same name in the source bean. Alternatively, one of
|
||||
@ -136,9 +136,6 @@ import static org.mapstruct.NullValueCheckStrategy.ON_IMPLICIT_CONVERSION;
|
||||
* }
|
||||
* </code></pre>
|
||||
*
|
||||
* <b>IMPORTANT NOTE:</b> the enum mapping capability is deprecated and replaced by {@link ValueMapping} it
|
||||
* will be removed in subsequent versions.
|
||||
*
|
||||
* @author Gunnar Morling
|
||||
*/
|
||||
|
||||
|
@ -189,12 +189,6 @@ public class SpecialOrderMapperImpl implements SpecialOrderMapper {
|
||||
----
|
||||
====
|
||||
|
||||
|
||||
[WARNING]
|
||||
====
|
||||
The mapping of enum to enum via the `@Mapping` annotation is *DEPRECATED*. It will be removed from future versions of MapStruct. Please adapt existing enum mapping methods to make use of `@ValueMapping` instead.
|
||||
====
|
||||
|
||||
=== Mapping enum-to-String or String-to-enum
|
||||
|
||||
MapStruct supports enum to a String mapping along the same lines as is described in <<Mapping enum to enum types, enum-to-enum types>>. There are similarities and differences:
|
||||
|
Loading…
x
Reference in New Issue
Block a user