ProcessLogDAO { public List<ProcessLog> list(Integer pageNum, Integer numResults) { Session session = sessionFactory.openSession(); session.beginTransaction(); Criteria criteria = session.createCriteria(ProcessLog.class); criteria.setFirstResult(pageNum); criteria.setMaxResults(numResults); List<ProcessLog> processLogs = criteria.list(); session.getTransaction().commit(); session.close(); return processLogs; }  List<ProcessLog> list(Integer pageNum, Integer numResults); Integer totalRecordCount(); ProcessLog get(Long id); Long insert(ProcessLog processLog); void update(ProcessLog processLog); void delete(Long id); void log(ProcessLogInfo processLogInfo); void logList(List<ProcessLogInfo> processLogInfoList); ProcessLogInfo getLastValue(ProcessLogInfo processLogInfo); List<ProcessLogInfo> listLog(ProcessLogInfo processLogInfo); List<ProcessLogInfo> getProcessLog(ProcessLogInfo processLogInfo); List<ProcessLogInfo> listLastInstanceRef(int processId, String messageId);  }
@Ignore @Test public void testList() throws Exception { LOGGER.info("Size of ProcessLog is atleast:" + processLogDAO.list(0, 10).size()); }