I'm using dozer to map objects. How can I ignore (exclude) a field using annotations with dozer?
Something like:
class A
{
@IgnoreField
public String someField;
}
class B
{
public String someField;
}
.........................................
B obj = mapper.map(A_obj, B.class);
Thanks a lot!!
Use @Mapping("this")
.
It will help you
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With