{
// No owning package defined so add one
FileMetaData filemd = new FileMetaData("annotations", null, null, null);
filemd.setType(FileMetaData.ANNOTATIONS);
pmd = new PackageMetaData(filemd, cls.getPackage().getName(), null, null);
filemd.addPackage(pmd);
}
boolean superClassPC = isClassPersistenceCapable(cls.getSuperclass());
cmd = mgr.getMetaDataFactory().newClassObject(pmd, ClassUtils.getClassNameForClass(cls), identityType, idClassName,
requiresExtent, detachable, embeddedOnly, persistenceModifier,
superClassPC ? cls.getSuperclass().getName() : null, catalog, schema, table, entityName);