The problem I met is with Java I try to use serialization or clone ,whatever, to backup an object(name it "object1"), so later if any dirty data occurs , I could take the stored object back and rollback.
But unfortunately the object I took back(using deserialization) is actually generating a new object (name it "object2"). The reference of object1 is not equal to object2 which means they are different objects in the memory space. But I hope I can restore the backup object to the original memory space. Is there any good method to do so? Or is it possible? Thx