@RequiresSession
  public List<TopologyHostInfoEntity> findAll() {
    TypedQuery<TopologyHostInfoEntity> query = entityManagerProvider.get().createQuery("SELECT hostInfo FROM TopologyHostInfoEntity hostInfo", TopologyHostInfoEntity.class);
    try {
      return query.getResultList();
    } catch (NoResultException e) {
      return Collections.emptyList();
    }
  }
Looks for TopologyHostInfo by ID
@param hostInfoId ID of topology host info
@return Found entity or NULL
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/TopologyHostInfoDAO.java