LineageQueryDAO { public List<LineageQuery> list(Integer pageNum, Integer numResults) { Session session = sessionFactory.openSession(); session.beginTransaction(); Criteria criteria = session.createCriteria(LineageQuery.class); criteria.setFirstResult(pageNum); criteria.setMaxResults(numResults); List<LineageQuery> lineageQuerys = criteria.list(); session.getTransaction().commit(); session.close(); return lineageQuerys; }  List<LineageQuery> list(Integer pageNum, Integer numResults); List<LineageQuery> listAll(); List<LineageQuery> getLastInstanceExecLists(Integer processId); Integer totalRecordCount(); LineageQuery get(String id); String insert(LineageQuery lineageQuery); void update(LineageQuery lineageQuery); void delete(String id);  }
@Ignore @Test public void testList() throws Exception { LOGGER.info("Size of LineageQuery is atleast:" + lineageQueryDAO.list(0, 10).size()); }