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