Dozer how to ignore annotated field

I use dozer to map objects. How can I ignore (exclude) a field using annotations with dozer?

Sort of:

class A { @IgnoreField public String someField; } class B { public String someField; } ......................................... B obj = mapper.map(A_obj, B.class); 

Thanks a lot!

+5
source share
1 answer

Use @Mapping("this") . It will help you

+4
source

Source: https://habr.com/ru/post/1258427/


All Articles