@Override
  public int hashCode() {
    int result = id.hashCode();
    result = 31 * result + (name != null ? name.hashCode() : 0);
    return result;
  }
Set the principal type name.

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