example:
class A{
String aa;
String bb;
String cc;
String dd;
}
class B{
String aa;
String bb;
}
OF course my real classes are bigger with more than 15 fields, that are also complex Object on their own. by now I am doing
B parseToB(A a){
B b = new b();
b.setAa(a.getAa());
b.setBb(a.getBb());
return b;
}
Is there an easy way to parse A to B? A Library or a builtin mapper class? It looks kind of like a weird spot in my code where I am just getsett-ing 15 lines of code.