@Override
  public int hashCode() {
    return Objects.hash(alertId, alertHistory);
  }
Generates a hash for the current alert based on the following criteria:
<ul>
<li>{@link #alertId}
<li>{@link #alertHistory}
</ul>
<p/>
For new alerts, the associated {@link AlertHistoryEntity} may not be
persisted yet. This will rely on the
{@link AlertHistoryEntity#equals(Object)} and
{@link AlertHistoryEntity#hashCode()} being correct.
<p/>
{@inheritDoc}
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertCurrentEntity.java