mapstruct-trening

Example 1

Simple use mapstruct - mapping entity model to dto Usage a @Mapping and @InheritInverseConfiguration

Example 2

Mapping from list to simple value (FirstElement and LastElement)

Example 3

Mapping from map to simple value (get by key name)

Example 4

Models from example1. Usage a @ValueMapping on enum type.

Example 5

Nested bean property

Example 6

Deep clone model