public void setRepositoryVersion(RepositoryVersionEntity repositoryVersion) {
    this.repositoryVersion = repositoryVersion;
  }
This constructor is mainly used by the unit tests in order to construct an object without the id.
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/HostVersionEntity.java