code: public static boolean isFindKeyOnly(EntityMetadata metadata, List<Map<String, Object>> colToOutput)
      {
          if (colToOutput != null && colToOutput.size() == 1)
          {
              String idCol = ((AbstractAttribute) metadata.getIdAttribute()).getJPAColumnName();
              return idCol.equals(colToOutput.get(0).get(Constants.DB_COL_NAME)) && !(boolean) colToOutput.get(0).get(Constants.IS_EMBEDDABLE);
          }
          else
          {
              return false;
          }
      }
docs: Checks if is find key only.
  
  @param metadata
  the metadata
  @param colToOutput
  the col to output
  @return true, if is find key only