Title: MapStruct - Mapping enum
Open Graph Title: MapStruct - Mapping enum
Description: Mapstruct automatically maps enums. Enums with same name are mapped automatically. In case of different name, we can use @ValueMapping annotation to do the mapping. Following example demonstrates the same.
Open Graph Description: Mapstruct automatically maps enums. Enums with same name are mapped automatically. In case of different name, we can use @ValueMapping annotation to do the mapping. Following example demonstrates the same.
Opengraph URL: https://www.tutorialspoint.com/mapstruct/mapstruct_mapping_enum.htm
Domain: www.tutorialspoint.com
| None | IE=edge |
| og:type | article |
| og:image | https://www.tutorialspoint.com/images/tp_logo_436.png |
Links:
Viewport: viewport-fit=cover, width=device-width, initial-scale=1.0, maximum-scale=3.0, user-scalable=yes