public DynamicMapInstantiator(PersistentClass mappingInfo) { this.entityName = mappingInfo.getEntityName(); isInstanceEntityNames.add(entityName); if (mappingInfo.hasSubclasses()) { Iterator itr = mappingInfo.getSubclassClosureIterator(); while (itr.hasNext()) { final PersistentClass subclassInfo = (PersistentClass) itr.next(); isInstanceEntityNames.add(subclassInfo.getEntityName()); } } }
public Dom4jInstantiator(PersistentClass mappingInfo) { this.nodeName = mappingInfo.getNodeName(); isInstanceNodeNames.add(nodeName); if (mappingInfo.hasSubclasses()) { Iterator itr = mappingInfo.getSubclassClosureIterator(); while (itr.hasNext()) { final PersistentClass subclassInfo = (PersistentClass) itr.next(); isInstanceNodeNames.add(subclassInfo.getNodeName()); } } }