@Override
  public int hashCode() {
    int result = id != null ? id.hashCode() : 0;
    result = 31 * result + (permissionName != null ? permissionName.hashCode() : 0);
    result = 31 * result + (permissionLabel != null ? permissionLabel.hashCode() : 0);
    result = 31 * result + (resourceType != null ? resourceType.hashCode() : 0);
    result = 31 * result + (sortOrder != null ? sortOrder.hashCode() : 0);
    result = 31 * result + (authorizations != null ? authorizations.hashCode() : 0);
    return result;
  }
Sets the explicit sort order value for this PermissionEntity

@param sortOrder a sorting order value
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/PermissionEntity.java