IntermediateDAO { public Intermediate get(IntermediateId intermediateId) { Session session = sessionFactory.openSession(); session.beginTransaction(); Intermediate intermediate = (Intermediate) session.get(Intermediate.class, intermediateId); session.getTransaction().commit(); session.close(); return intermediate; }  List<Intermediate> list(Integer pageNum, Integer numResults); Long totalRecordCount(); Intermediate get(IntermediateId intermediateId); IntermediateId insert(Intermediate intermediate); void update(Intermediate intermediate); void delete(IntermediateId intermediateId);  }
@Ignore @Test public void testGet() throws Exception { IntermediateId intermediateId = new IntermediateId(); intermediateId.setInterKey("test"); intermediateId.setUuid("uuid"); LOGGER.info("intermediate(10802) value:" + intermediateDAO.get(intermediateId).getInterValue()); }