@Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    ViewEntityEntity that = (ViewEntityEntity) o;

    if (!className.equals(that.className)) return false;
    if (id != null ? !id.equals(that.id) : that.id != null) return false;
    if (idProperty != null ? !idProperty.equals(that.idProperty) : that.idProperty != null) return false;
    if (!viewInstanceName.equals(that.viewInstanceName)) return false;
    if (!viewName.equals(that.viewName)) return false;

    return true;
  }
Set the id property.

@param idProperty  the id property
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntityEntity.java