Detecting modified nodes in a POJO

19 views
Skip to first unread message

shwetag...@gmail.com

unread,
Jul 17, 2020, 4:47:07 AM7/17/20
to mapstruct-users
I am using mapstruct 1.3.1-FINAL and mapping 2 complex custom objects - Employee "source" and Employee "update". Once I apply the "update" on "source" , is there a way I can find out what all nodes were updated in Employee "source" ? My Employee object is quite complex with lots of custom attributes but I just want to further process only the ones that are modified in "source".   For example if the structure of 2 pojos are

Employee{
String name;
Address addresses;
Telephone telecoms;
Email emails;
}

Now there is a possibility of Employee "update" having only changes in Address. Once I copy update on source using mapstruct, I want to be able to detect what all nodes were updated in Employee object so that I can further process them
. I am very new to java and mapstruct and learning so please pardon my ignorance.
Reply all
Reply to author
Forward
0 new messages