@Override
  public boolean equals(Object object) {
    if (this == object) {
      return true;
    }

    if (object == null || getClass() != object.getClass()) {
      return false;
    }

    MpackEntity that = (MpackEntity) object;
    EqualsBuilder equalsBuilder = new EqualsBuilder();

    equalsBuilder.append(id, that.id);
    equalsBuilder.append(mpackName, that.mpackName);
    equalsBuilder.append(mpackVersion, that.mpackVersion);
    return equalsBuilder.isEquals();
  }
The {@link MpackEntity} class represents the mpack objects in the cluster.
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/MpackEntity.java