LineageNodeTypeDAO { public List<LineageNodeType> list(Integer pageNum, Integer numResults) { Session session = sessionFactory.openSession(); session.beginTransaction(); Criteria criteria = session.createCriteria(LineageNodeType.class); criteria.setFirstResult(pageNum); criteria.setMaxResults(numResults); List<LineageNodeType> lineageNodeTypes = criteria.list(); session.getTransaction().commit(); session.close(); return lineageNodeTypes; }  List<LineageNodeType> list(Integer pageNum, Integer numResults); Integer totalRecordCount(); LineageNodeType get(int id); int insert(LineageNodeType lineageNodeType); void update(LineageNodeType lineageNodeType); void delete(int id);  }
@Ignore @Test public void testList() throws Exception { LOGGER.info("Size of LineageNodeType is atleast:" + lineageNodeTypeDAO.list(0, 10).size()); }