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

    ViewInstanceDataEntityPK that = (ViewInstanceDataEntityPK) o;

    return name.equals(that.name) && user.equals(that.user) && viewInstanceId.equals(that.viewInstanceId);

  }
Set the user.

@param user  the user
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceDataEntityPK.java