mapstruct / mapstruct-examples

Examples for using MapStruct
Other
1.3k stars 508 forks source link

#26 Add example mapping from Map to property #27

Closed xenteros closed 7 years ago

xenteros commented 7 years ago

Added Source class with single field: Map<String, Object>, Added Target class with two fields, String ip and String server, Added MappingUtil with two interfaces for each of the properties, Added SourceTargetMapper, Covered with positive and negative tests. Updated README file

xenteros commented 7 years ago

@filiphr I have finally found some time to apply requested changes. Hopefully it's good now :)

filiphr commented 7 years ago

@xenteros it looks better now. I'll merge it later today. One question. can I merge the 2 commits into one? I see that the authors of the commits are different.

xenteros commented 7 years ago

@filiphr yes of course, could you pick author @xenteros? The other was the reason of not changing the profile after switching from work to pleasure :)

filiphr commented 7 years ago

This has been merged in 38bb29a. Thanks a lot for the example @xenteros.

Just as info, I added some small things in 937c2fc.