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
hi,
While Using updating destination bean , we pass the instance of destination bean along with Source instance.now , there are 2 scenarios which i faced , output differs in both cases:
Scenario 1: if source has field(non collection field like String name) which is null. Now if destination has this field , then this value will not be updated in destination bean.
Scenario 2: if source has field(collection field like List ids) which is null. Now if destination has this field , then this value will updated in destination bean.
I want same result as in case of non collection field. i means i will update the field in destination bean only if the field in source is not null .Is it is possible?
Thanks
The text was updated successfully, but these errors were encountered:
Are you using the withIgnoreNullValue in both cases ? This should work the same but don't expect updating collections of objects in a destination bean.
For the moment Selma can only overrides the existing collection with the one coming from source bean.
I hope this helps. If the null value is not handled with the same behavior I'll consider this as a bug.
hi,
While Using updating destination bean , we pass the instance of destination bean along with Source instance.now , there are 2 scenarios which i faced , output differs in both cases:
Scenario 1: if source has field(non collection field like String name) which is null. Now if destination has this field , then this value will not be updated in destination bean.
Scenario 2: if source has field(collection field like List ids) which is null. Now if destination has this field , then this value will updated in destination bean.
I want same result as in case of non collection field. i means i will update the field in destination bean only if the field in source is not null .Is it is possible?
Thanks
The text was updated successfully, but these errors were encountered: