@Override
  public int hashCode() {
    int hashCode = 1;

    hashCode = hashCode * 8191 + ((isSetPktable_db()) ? 131071 : 524287);
    if (isSetPktable_db())
      hashCode = hashCode * 8191 + pktable_db.hashCode();

    hashCode = hashCode * 8191 + ((isSetPktable_name()) ? 131071 : 524287);
    if (isSetPktable_name())
      hashCode = hashCode * 8191 + pktable_name.hashCode();

    hashCode = hashCode * 8191 + ((isSetPkcolumn_name()) ? 131071 : 524287);
    if (isSetPkcolumn_name())
      hashCode = hashCode * 8191 + pkcolumn_name.hashCode();

    hashCode = hashCode * 8191 + ((isSetFktable_db()) ? 131071 : 524287);
    if (isSetFktable_db())
      hashCode = hashCode * 8191 + fktable_db.hashCode();

    hashCode = hashCode * 8191 + ((isSetFktable_name()) ? 131071 : 524287);
    if (isSetFktable_name())
      hashCode = hashCode * 8191 + fktable_name.hashCode();

    hashCode = hashCode * 8191 + ((isSetFkcolumn_name()) ? 131071 : 524287);
    if (isSetFkcolumn_name())
      hashCode = hashCode * 8191 + fkcolumn_name.hashCode();

    hashCode = hashCode * 8191 + key_seq;

    hashCode = hashCode * 8191 + update_rule;

    hashCode = hashCode * 8191 + delete_rule;

    hashCode = hashCode * 8191 + ((isSetFk_name()) ? 131071 : 524287);
    if (isSetFk_name())
      hashCode = hashCode * 8191 + fk_name.hashCode();

    hashCode = hashCode * 8191 + ((isSetPk_name()) ? 131071 : 524287);
    if (isSetPk_name())
      hashCode = hashCode * 8191 + pk_name.hashCode();

    hashCode = hashCode * 8191 + ((enable_cstr) ? 131071 : 524287);

    hashCode = hashCode * 8191 + ((validate_cstr) ? 131071 : 524287);

    hashCode = hashCode * 8191 + ((rely_cstr) ? 131071 : 524287);

    hashCode = hashCode * 8191 + ((isSetCatName()) ? 131071 : 524287);
    if (isSetCatName())
      hashCode = hashCode * 8191 + catName.hashCode();

    return hashCode;
  }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLForeignKey.java