orika-mapper/orika

Same object with different fields?

Opened this issue · 0 comments

Hi, experts:

Suppose my source object has two properties (p1 and p2) referring to another same object with field a and b, I want to specify that I want to map only field a in p1 and only field b in p2, is this possible to achieve?

I tried to exclude b from p1 and exclude a from p2 but the result is still a complete object with both a and b.

Is it possible for this same object to map to two different target objects?

Thanks.