BatchConsumpQueueDAO { public BatchConsumpQueue get(Long id) { Session session = sessionFactory.openSession(); session.beginTransaction(); BatchConsumpQueue batchConsumpQueue = (BatchConsumpQueue) session.get(BatchConsumpQueue.class, id); session.getTransaction().commit(); session.close(); return batchConsumpQueue; }  List<BatchConsumpQueue> list(Integer pageNum, Integer numResults); Long totalRecordCount(); BatchConsumpQueue get(Long id); Long insert(BatchConsumpQueue batchConsumpQueue); void update(BatchConsumpQueue batchConsumpQueue); void delete(Long id); Integer getBCQForProcessId(Process process);  }
@Test @Ignore public void testGet() throws Exception { LOGGER.info("BatchMarking of batchConsumpQueue(2) is:" + batchConsumpQueueDAO.get((long) 2).getBatchMarking()); }