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() {
<bean id ="band" class ="com.performer.Band"> <property name="musician" ref="musician"></property> <property name="singer" ref="singer"></property> </bean>The above XML fragment