code: private boolean uglyHackHasGeneratedValueAnno() {
          if (useSequenceNameShortcut()) {
              return true;
          }
  
          if (attribute.getColumnConfig().useConfigForIdGenerator()) {
              return attribute.getColumnConfig().hasGeneratedValue();
          } else if (attribute.getAutoIncrement() == TRUE) {
              return true;
          } else if (attribute.getAutoIncrement() == FALSE && /* 32 length string are special for us */!attribute.isString()) {
              // the jdbc driver supports IS_AUTOINCREMENT metadata, great!
              return false;
          } else {
              // the jdbc driver does not support IS_AUTOINCREMENT
              // fall back to convention
              return hasIdGeneratorByConvention();
          }
      }
docs: mirror the getGeneratedValueAnnotation logic and return true if
  a GeneratedValue annotation applies.
  TODO: code review.