ProcessLogDAO { public ProcessLog get(Long id) { Session session = sessionFactory.openSession(); session.beginTransaction(); ProcessLog processLog = (ProcessLog) session.get(ProcessLog.class, id); session.getTransaction().commit(); session.close(); return processLog; }  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);  }
@Test @Ignore public void testGet() throws Exception { LOGGER.info("ProcessLog(0) message:" + processLogDAO.get(Long.valueOf(2)).getMessage()); }