private static final Localizer _loc = Localizer.forPackage
(EmbeddedClassStrategy.class);
public void map(boolean adapt) {
ValueMapping vm = cls.getEmbeddingMapping();
if (vm == null || vm.getType() != cls.getDescribedType())
throw new MetaDataException(_loc.get("not-embed", cls));
ClassMappingInfo info = cls.getMappingInfo();
info.assertNoSchemaComponents(cls, true);
ClassMapping owner = vm.getFieldMapping().getDefiningMapping();
cls.setIdentityType(owner.getIdentityType());
cls.setObjectIdType(owner.getObjectIdType(),
owner.isObjectIdTypeShared());
cls.setTable(vm.getFieldMapping().getTable());
cls.setPrimaryKeyColumns(owner.getPrimaryKeyColumns());
cls.setColumnIO(owner.getColumnIO());
}