In an earlier post we saw how to reattach detached objects using update() and lock(). Consider the below code where we try to reattach an object.
public static void needForMerge() {
public static void needForMerge() {