I have a class A like:
A {
ClassB b;
String a;
}
Now there is another class X like:
X {
ClassY y;
String a;
}
Now, ClassY is same as ClassB, like:
ClassB/ClassY {
String b;
}
I want to copy an instance of A into a new object of Y.
I came across Dozer which does similar mapping but that was if the values are primitive. I couldn't understand how to map the classes in them. Trying to do this in java.
I came across the answer https://stackoverflow.com/a/36196948/2733350 but I could not find MapperFactory in Dozer.