assoc = (Instance)value;
}
for (int i = 0, n = mapping.getDenormCount(); i < n; ++i)
{
RelationalClassDenorm denorm = (RelationalClassDenorm)mapping.getDenorm(i);
Key dstKey = ((RelationalClassMapping)denorm.getMapping()).getDestinationKey();
SQLWork work = findWork(uow, instance, denorm.getSourceKey().getTable());
if (work != null)
{
if (assoc != null && assoc.getOID() == null)
{
addDependency(uow, work, assoc, denorm.getSourceKey(), dstKey, true);
}
else
{
work.setKeyValue(denorm.getSourceKey(), dstKey, assoc);
}
}
}
}
}