コード例 #1
0
 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());
     }
   }
 }
コード例 #2
0
  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());
      }
    }
  }