0
我需要使用Orika將屬性映射到若干屬性,並且正在努力尋找合適的示例。Orika,將一個屬性映射到多個屬性
考慮以下類:
public class A {
String propertyA1
String propertyB1
}
public class B {
C cInstance;
D dInstance;
String propertyB2;
}
public class C {
String propertyA2Part;
}
public class D {
String propertyA3Part;
}
基本上我映射類A到B級,但一路上我需要解析propertyA1和值發送到C.propertyA2Part和D.propertyA3Part的方式。我正在嘗試確定轉換器/映射器/過濾器之間的最佳設備。