@RequiresSession
  public List<HostVersionEntity> findByHost(String hostName) {
    final TypedQuery<HostVersionEntity> query = entityManagerProvider.get()
        .createNamedQuery("hostVersionByHostname", HostVersionEntity.class);
    query.setParameter("hostName", hostName);

    return daoUtils.selectList(query);
  }
Retrieve all of the host versions for the given host name across all clusters.

@param hostName FQDN of host
@return Return all of the host versions that match the criteria.
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostVersionDAO.java