docs: protected void appendClause(StringBuffer clause, Criteria crit, StringBuffer stmt)
      {
          /**
           * MBAIRD
           * when generating the "WHERE/HAVING" clause we need to append the criteria for multi-mapped
           * tables. We only need to do this for the root classdescriptor and not for joined tables
           * because we assume you cannot make a relation of the wrong type upon insertion. Of course,
           * you COULD mess the data up manually and this would cause a problem.
           */
  
          if (clause != null)
          {
              stmt.append(clause.toString());
          }
          if (crit != null)
          {
              if (clause == null)
              {
                  stmt.append(asSQLStatement(crit));
              }
              else
              {
                  stmt.append(" AND (");
                  stmt.append(asSQLStatement(crit));
                  stmt.append(")");
              }
  
          }
      }