public Long getParentId() {
    return null == parent ? null : parent.getId();
  }
@return the parentId, or {@code null} if the entity is already a parent
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/RepositoryVersionEntity.java