storeMgr.addClasses(mdClasses.toArray(new String[mdClasses.size()]), clr); // Make sure all classes are in store
if (cmd.hasDiscriminatorStrategy()) {
String disProp = EntityUtils.getDiscriminatorPropertyName(storeMgr.getIdentifierFactory(), cmd.getDiscriminatorMetaDataForTable());
if (disProp != null && entity.hasProperty(disProp)) {
// If this Entity is not of the right class then return false
DiscriminatorStrategy discStr = cmd.getDiscriminatorStrategyForTable();
String discValExpected = cls.getName();
if (discStr == DiscriminatorStrategy.VALUE_MAP) {
discValExpected = (String) cmd.getDiscriminatorValue();
}