BatchDAO { public Batch get(Long id) { Session session = sessionFactory.openSession(); session.beginTransaction(); Batch batch = (Batch) session.get(Batch.class, id); session.getTransaction().commit(); session.close(); return batch; }  List<Batch> list(Integer pageNum, Integer numResults); Integer totalRecordCount(); Batch get(Long id); Long insert(Batch batch); void update(Batch batch); void delete(Long id);  }
@Ignore @Test public void testGet() throws Exception { LOGGER.info("Batch(0) type:" + batchDAO.get(Long.valueOf(0)).getBatchType()); }