@Test public void testFindAll() { List<AlertDefinitionEntity> definitions = dao.findAll(); assertNotNull(definitions); assertEquals(15, definitions.size()); }
@RequiresSession public List<AlertDefinitionEntity> findAll() { TypedQuery<AlertDefinitionEntity> query = entityManagerProvider.get().createNamedQuery( "AlertDefinitionEntity.findAll", AlertDefinitionEntity.class); return daoUtils.selectList(query); }
AlertDefinitionDAO { @RequiresSession public List<AlertDefinitionEntity> findAll() { TypedQuery<AlertDefinitionEntity> query = entityManagerProvider.get().createNamedQuery( "AlertDefinitionEntity.findAll", AlertDefinitionEntity.class); return daoUtils.selectList(query); } }
AlertDefinitionDAO { @RequiresSession public List<AlertDefinitionEntity> findAll() { TypedQuery<AlertDefinitionEntity> query = entityManagerProvider.get().createNamedQuery( "AlertDefinitionEntity.findAll", AlertDefinitionEntity.class); return daoUtils.selectList(query); }  }
AlertDefinitionDAO { @RequiresSession public List<AlertDefinitionEntity> findAll() { TypedQuery<AlertDefinitionEntity> query = entityManagerProvider.get().createNamedQuery( "AlertDefinitionEntity.findAll", AlertDefinitionEntity.class); return daoUtils.selectList(query); }  @RequiresSession AlertDefinitionEntity findById(long definitionId); @RequiresSession AlertDefinitionEntity findByName(long clusterId, String definitionName); @RequiresSession List<AlertDefinitionEntity> findAll(); @RequiresSession List<AlertDefinitionEntity> findAll(long clusterId); @RequiresSession List<AlertDefinitionEntity> findAllEnabled(long clusterId); @RequiresSession List<AlertDefinitionEntity> findByIds(List<Long> definitionIds); @RequiresSession List<AlertDefinitionEntity> findByService(long clusterId,
      String serviceName); @RequiresSession List<AlertDefinitionEntity> findByServiceMaster(long clusterId,
      Set<String> services); @RequiresSession List<AlertDefinitionEntity> findByServiceComponent(long clusterId,
      String serviceName, String componentName); @RequiresSession List<AlertDefinitionEntity> findAgentScoped(long clusterId); @Transactional void create(AlertDefinitionEntity alertDefinition); @Transactional void refresh(AlertDefinitionEntity alertDefinition); @Transactional AlertDefinitionEntity merge(AlertDefinitionEntity alertDefinition); void createOrUpdate(AlertDefinitionEntity alertDefinition); @Transactional void remove(AlertDefinitionEntity alertDefinition); @Transactional void removeAll(long clusterId); }
AlertDefinitionDAO { @RequiresSession public List<AlertDefinitionEntity> findAll() { TypedQuery<AlertDefinitionEntity> query = entityManagerProvider.get().createNamedQuery( "AlertDefinitionEntity.findAll", AlertDefinitionEntity.class); return daoUtils.selectList(query); }  @RequiresSession AlertDefinitionEntity findById(long definitionId); @RequiresSession AlertDefinitionEntity findByName(long clusterId, String definitionName); @RequiresSession List<AlertDefinitionEntity> findAll(); @RequiresSession List<AlertDefinitionEntity> findAll(long clusterId); @RequiresSession List<AlertDefinitionEntity> findAllEnabled(long clusterId); @RequiresSession List<AlertDefinitionEntity> findByIds(List<Long> definitionIds); @RequiresSession List<AlertDefinitionEntity> findByService(long clusterId,
      String serviceName); @RequiresSession List<AlertDefinitionEntity> findByServiceMaster(long clusterId,
      Set<String> services); @RequiresSession List<AlertDefinitionEntity> findByServiceComponent(long clusterId,
      String serviceName, String componentName); @RequiresSession List<AlertDefinitionEntity> findAgentScoped(long clusterId); @Transactional void create(AlertDefinitionEntity alertDefinition); @Transactional void refresh(AlertDefinitionEntity alertDefinition); @Transactional AlertDefinitionEntity merge(AlertDefinitionEntity alertDefinition); void createOrUpdate(AlertDefinitionEntity alertDefinition); @Transactional void remove(AlertDefinitionEntity alertDefinition); @Transactional void removeAll(long clusterId);  }