class TopologyRequestDAO {

  @RequiresSession
  public List<TopologyRequestEntity> findByClusterId(long clusterId) {
    TypedQuery<TopologyRequestEntity> query = entityManagerProvider.get()
      .createNamedQuery("TopologyRequestEntity.findByClusterId", TopologyRequestEntity.class);

    query.setParameter("clusterId", clusterId);
    return daoUtils.selectList(query);
  }

}