@Override
  public String toString() {
    return "PrivilegeEntity{" +
        "id=" + id +
        ", permission=" + permission +
        ", resource=" + resource +
        ", principal=" + principal +
        '}';
  }
Set the principal entity.

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