@Test public void testFindAll() { createRecords(); Assert.assertEquals(3, widgetDAO.findAll().size()); }
@RequiresSession public List<WidgetEntity> findAll() { TypedQuery<WidgetEntity> query = entityManagerProvider.get() .createNamedQuery("WidgetEntity.findAll", WidgetEntity.class); return daoUtils.selectList(query); }
WidgetDAO { @RequiresSession public List<WidgetEntity> findAll() { TypedQuery<WidgetEntity> query = entityManagerProvider.get() .createNamedQuery("WidgetEntity.findAll", WidgetEntity.class); return daoUtils.selectList(query); } }
WidgetDAO { @RequiresSession public List<WidgetEntity> findAll() { TypedQuery<WidgetEntity> query = entityManagerProvider.get() .createNamedQuery("WidgetEntity.findAll", WidgetEntity.class); return daoUtils.selectList(query); }  }
WidgetDAO { @RequiresSession public List<WidgetEntity> findAll() { TypedQuery<WidgetEntity> query = entityManagerProvider.get() .createNamedQuery("WidgetEntity.findAll", WidgetEntity.class); return daoUtils.selectList(query); }  @RequiresSession WidgetEntity findById(Long id); @RequiresSession List<WidgetEntity> findByCluster(long clusterId); @RequiresSession List<WidgetEntity> findBySectionName(String sectionName); @RequiresSession List<WidgetEntity> findByName(Long clusterId, String widgetName, String author, String defaultSectionName); @RequiresSession List<WidgetEntity> findByScopeOrAuthor(String author, String scope); @RequiresSession List<WidgetEntity> findAll(); @Transactional void create(WidgetEntity widgetEntity); @Transactional WidgetEntity merge(WidgetEntity widgetEntity); @Transactional void remove(WidgetEntity widgetEntity); @Transactional void removeByPK(Long id); @Transactional void refresh(WidgetEntity widgetEntity); }
WidgetDAO { @RequiresSession public List<WidgetEntity> findAll() { TypedQuery<WidgetEntity> query = entityManagerProvider.get() .createNamedQuery("WidgetEntity.findAll", WidgetEntity.class); return daoUtils.selectList(query); }  @RequiresSession WidgetEntity findById(Long id); @RequiresSession List<WidgetEntity> findByCluster(long clusterId); @RequiresSession List<WidgetEntity> findBySectionName(String sectionName); @RequiresSession List<WidgetEntity> findByName(Long clusterId, String widgetName, String author, String defaultSectionName); @RequiresSession List<WidgetEntity> findByScopeOrAuthor(String author, String scope); @RequiresSession List<WidgetEntity> findAll(); @Transactional void create(WidgetEntity widgetEntity); @Transactional WidgetEntity merge(WidgetEntity widgetEntity); @Transactional void remove(WidgetEntity widgetEntity); @Transactional void removeByPK(Long id); @Transactional void refresh(WidgetEntity widgetEntity);  }