LineageNodeDAO { public List<LineageNode> list(Integer pageNum, Integer numResults) { Session session = sessionFactory.openSession(); session.beginTransaction(); Criteria criteria = session.createCriteria(LineageNode.class); criteria.setFirstResult(pageNum); criteria.setMaxResults(numResults); List<LineageNode> lineageNodes = criteria.list(); session.getTransaction().commit(); session.close(); return lineageNodes; }  List<LineageNode> list(Integer pageNum, Integer numResults); Integer totalRecordCount(); LineageNode get(String id); List<LineageNode> getTableNode(String tableName); String getContainerDot(String nodeid); String insert(LineageNode lineageNode); LineageNode getColNodeId(String colName, LineageNode tableNode); void update(LineageNode lineageNode); void delete(String id);  }
@Ignore @Test public void testList() throws Exception { LOGGER.info("Size of LineageNode is atleast:" + lineageNodeDAO.list(0, 10).size()); }