while (mapping.getJoinablePCSuperclassMapping() != null)
mapping = mapping.getJoinablePCSuperclassMapping();
Version vers = mapping.getVersion();
if (!bufferCustomUpdate(vers, sm, store, customs))
vers.update(sm, store, rowMgr);
if (versionUpdateOnly) {
// if we are only updating the version column, we need to add
// in the primary key select
mapping.update(sm, store, rowMgr);