code: protected void generateFetchMethods(TableDefinition table, JavaWriter out){
          VertxJavaWriter vOut = (VertxJavaWriter) out;
          String pType = vOut.ref(getStrategy().getFullJavaClassName(table, GeneratorStrategy.Mode.POJO));
          UniqueKeyDefinition primaryKey = table.getPrimaryKey();
          ColumnDefinition firstPrimaryKeyColumn = primaryKey.getKeyColumns().get(0);
          for (ColumnDefinition column : table.getColumns()) {
              final String colName = column.getOutputName();
              final String colClass = getStrategy().getJavaClassName(column);
              final String colType = vOut.ref(getJavaType(column.getType()));
              final String colIdentifier = vOut.ref(getStrategy().getFullJavaIdentifier(column), colRefSegments(column));
  
  
              //fetchById is already defined in VertxDAO
              if(!firstPrimaryKeyColumn.equals(column)){
  
  
                  // fetchBy[Column]([T]...)
                  // -----------------------
  
                  generateFindManyByMethods(out, pType, colName, colClass, colType, colIdentifier);
              }
  
  
              ukLoop:
              for (UniqueKeyDefinition uk : column.getUniqueKeys()) {
  
                  // If column is part of a single-column unique key...
                  if (uk.getKeyColumns().size() == 1 && uk.getKeyColumns().get(0).equals(column) && !uk.isPrimaryKey()) {
                      // fetchOneBy[Column]([T])
                      // -----------------------
                      generateFindOneByMethods(out, pType, colName, colClass, colType, colIdentifier);
                      break ukLoop;
                  }
              }
          }
      }
docs: Copied (more ore less) from JavaGenerator.
  Generates fetchByCYZ- and fetchOneByCYZ-methods
  @param table
  @param out