404-not-find / orika

Automatically exported from code.google.com/p/orika
2 stars 0 forks source link

Orika issues in setting null if nested type is null, While flattening it #197

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of Orika are you using? 1.4.5

--------------------------------ISSUE--------------------------------
Orika was not mapping null when I tried to flatten it to simple HashMap with 
some attr name & value in plane type. Please help.
I am stating an example below:
Class A {
B b;
}

Class B {
String property1;
String property2;
}

I am trying to convert class A to a HashMap.
If B is null, property1 & property2 will never go to the HashMap, even if 
mapNull is true.

Original issue reported on code.google.com by robinsom...@gmail.com on 17 Jun 2015 at 3:01