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

    ResourceTypeEntity that = (ResourceTypeEntity) o;

    return !(id != null ? !id.equals(that.id) : that.id != null) && !(name != null ?
        !name.equals(that.name) : that.name != null);
  }
Set the resource type name.

@param name  the resource type name.
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ResourceTypeEntity.java