if (subMappings.length == 0)
{
// Embedded PC has no PK so must be embedded-only so use mapping from owner table
DatastoreClass table = storeMgr.getDatastoreClass(cmd.getFullClassName(), clr);
JavaTypeMapping ownerMapping = table.getFieldMapping(mmd);
EmbeddedMapping embMapping = (EmbeddedMapping)ownerMapping;
for (int k=0;k<embMapping.getNumberOfJavaTypeMappings();k++)
{
JavaTypeMapping subMapping = embMapping.getJavaTypeMapping(k);
pkMappings[position] = subMapping;
pkFieldValues[position] = getFieldValue(subMapping.getFieldMetaData(), fieldValue);
position++;
}
}