public void setTargetRepositoryVersion(RepositoryVersionEntity repositoryVersionEntity) {
    targetRepositoryVersion = repositoryVersionEntity;
  }
Sets the target repository of the upgrade.

@param repositoryVersionEntity
         the target repository (not {@code null}).
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/UpgradeHistoryEntity.java