@Transactional
  public void removeByHostName(String hostName) {
    Collection<HostVersionEntity> hostVersions = findByHost(hostName);
    this.remove(hostVersions);
  }
Gets the {@link HostVersionEntity} associted with the specified host and
repository.

@param host
@param repositoryVersion
@return
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostVersionDAO.java