Mapping from a extends class
juanat opened this issue · 0 comments
juanat commented
Hi,
I have a question about how is the best and easy way to map from a extends class to a property. I have somethig similar to this:
@Data
public class Foo1 extends Foo2 {
private String property1Foo1;
}
@Data
public class Foo2 {
private String property1Foo2;
private String property2Foo2;
private Foo property3Foo2;
private String property4Foo2;
.
.
.
}
@Data
public class Foo3 {
private Integer property1Foo3;
private String property2Foo3;
private Foo2 property3Foo3;
}
So i'd like to map from Foo1 to Foo3 without write all properties but maybe just ignoring a couples of properties.
Thankx in advanced