@Override
  public int hashCode() {
    int result = id.hashCode();
    result = 31 * result + (principalType != null ? principalType.hashCode() : 0);
    return result;
  }
Remove a privilege.

@param privilege  the privilege entity
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/PrincipalEntity.java