Ejemplo n.º 1
0
  /** Recursively appends all relationships in the entity inheritance hierarchy. */
  final void appendRelationships(Map<String, ObjRelationship> map) {
    map.putAll((Map<String, ObjRelationship>) super.getRelationshipMap());

    ObjEntity superEntity = getSuperEntity();
    if (superEntity != null) {
      superEntity.appendRelationships(map);
    }
  }
Ejemplo n.º 2
0
  @Override
  public SortedMap<String, ObjRelationship> getRelationshipMap() {
    if (superEntityName == null) {
      return (SortedMap<String, ObjRelationship>) super.getRelationshipMap();
    }

    SortedMap<String, ObjRelationship> relationshipMap = new TreeMap<String, ObjRelationship>();
    appendRelationships(relationshipMap);
    return relationshipMap;
  }