// }
// }
public void afterReassociate(Object entity, SessionImplementor session) {
if ( getEntityMetamodel().getInstrumentationMetadata().isInstrumented() ) {
FieldInterceptor interceptor = getEntityMetamodel().getInstrumentationMetadata().extractInterceptor( entity );
if ( interceptor != null ) {
interceptor.setSession( session );
}
else {
FieldInterceptor fieldInterceptor = getEntityMetamodel().getInstrumentationMetadata().injectInterceptor(
entity,
getEntityName(),
null,
session
);
fieldInterceptor.dirty();
}
}
handleNaturalIdReattachment( entity, session );
}