I've these classes Foo and Foo2 which needs to be mapped together
Class Foo{
private double averageBalance;
// getters and setters
}
Class Foo2{
private Double averageCurrentBalance;
// getters and setters
}
Now I want to do mapping between Classes Foo and Foo2, something like this:
<mapping>
<class-a>Foo</class-a>
<class-b>Foo2</class-b>
<field>
<a>averageBalance</a>
<b>averageCurrentBalance</b>
</field>
</mapping>
But this isn't working, I'm looking for some custom converters, couldn't find any. Can someone please help ?