mapstruct / mapstruct.org

Web site of the MapStruct project
63 stars 40 forks source link

final value containers #92

Closed kwasny2 closed 5 years ago

kwasny2 commented 5 years ago

I have something like following structure: class PersonDto { final Value name = new Value(); final Value surname = new Value(); }

class Value { ... void set(String value) { ... } String get() { ... } }

class Person() { String name; String surname; }

Any clue how to map it? From PersonDto to Person, it is relatively easy, hot to do it in revered order. Mind the Values are final.

sjaakd commented 5 years ago

please ask questions on StackOverflow.