PendingUrlsDBDao { public List<Pendingurlsdb> list(Integer pageNum, Integer numResults) { Session session = sessionFactory.getCurrentSession(); session.beginTransaction(); Criteria criteria=session.createCriteria(Pendingurlsdb.class); criteria.setFirstResult(pageNum); criteria.setMaxResults(numResults); List<Pendingurlsdb> pendingurlsdbs = criteria.list(); session.getTransaction().commit(); return pendingurlsdbs; }  List<Pendingurlsdb> list(Integer pageNum, Integer numResults); Long totalRecordCount(); Pendingurlsdb get(Integer id); Integer insert(Pendingurlsdb pendingurlsdb); void update(Pendingurlsdb pendingurlsdb); void delete(Integer id);  }
@Ignore @Test public void testList() throws Exception { List<Pendingurlsdb> pendingUrlLists = pendingUrlsDBDao.list(0,3); for (Pendingurlsdb pendingUrlList:pendingUrlLists){ LOGGER.info(pendingUrlList.getUrl()); } }