postClone and PostMerge trasient field.
I have a unmapped field in my class. I tried to maintain the reference by listening the postClone and postMerge event.
My strategy works like this:
upon receiving postClone event, I initialize the field in the clone by copy the field from original object. Upon receiving the postMerge event, I copy this field from clone back to original object.
I can extract these two objects through getSource() and getOriginalObject(). However I do not know which one is clone and which one is the original object. Could someone clarify this for me?
Thanks
jason