code: protected boolean appendColName(String attr, String attrAlias, boolean useOuterJoins, UserAlias aUserAlias,
              StringBuffer buf)
      {
  		AttributeInfo attrInfo = getAttributeInfo(attr, useOuterJoins, aUserAlias, getQuery().getPathClasses());
          TableAlias tableAlias = attrInfo.tableAlias;
          PathInfo pi = attrInfo.pathInfo;
  
          if (pi.suffix != null)
          {
              pi.suffix = pi.suffix + " as " + attrAlias;
          }
          else
          {
              pi.suffix = " as " + attrAlias;
          }
  
          return appendColName(tableAlias, pi, true, buf);
      }
docs: Append the appropriate ColumnName to the buffer<br>
  if a FIELDDESCRIPTOR is found for the Criteria the colName is taken from
  there otherwise its taken from Criteria. <br>
  field names in functions (ie: sum(name) ) are tried to resolve
  ie: name from FIELDDESCRIPTOR , UPPER(name_test) from Criteria<br>
  also resolve pathExpression adress.city or owner.konti.saldo