You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If my source object has an empty array in it's hierarchy it doesn't get mapped (or is ignored maybe?). I created a program here to demonstrate: https://onecompiler.com/java/3yktwzjc3
You can see I map FooDTO -> Foo. The mapping for everything works e.g. the name fields, but the empty 'jars' array in the FooDTO's bar object doesn't get mapped.
Any ideas? Thanks
The text was updated successfully, but these errors were encountered:
If my source object has an empty array in it's hierarchy it doesn't get mapped (or is ignored maybe?). I created a program here to demonstrate: https://onecompiler.com/java/3yktwzjc3
The output is:
FooDTO before: FooDTO{name='My foo DTO', bar=BarDTO{name='My foo's bar', jars=[]}}
Foo before: Foo{name='My Foo', bar=Bar{name='null', jars=[Jar{name='Jar 1'}, Jar{name='Jar 2'}]}}
Foo after: Foo{name='My foo DTO', bar=Bar{name='My foo's bar', jars=[Jar{name='Jar 1'}, Jar{name='Jar 2'}]}}
You can see I map FooDTO -> Foo. The mapping for everything works e.g. the name fields, but the empty 'jars' array in the FooDTO's bar object doesn't get mapped.
Any ideas? Thanks
The text was updated successfully, but these errors were encountered: