LineageRelationDAO { public LineageRelation get(String id) { Session session = sessionFactory.openSession(); session.beginTransaction(); LineageRelation lineageRelation = (LineageRelation) session.get(LineageRelation.class, id); session.getTransaction().commit(); session.close(); return lineageRelation; }  List<LineageRelation> list(Integer pageNum, Integer numResults); List<LineageRelation> getNodeIdForNode(String nodeid); List<LineageRelation> getNodeIdForNodeWhenTarget(String nodeid); Integer totalRecordCount(); LineageRelation get(String id); String insert(LineageRelation lineageRelation); void update(LineageRelation lineageRelation); void delete(String id);  }
@Test @Ignore public void testGet() throws Exception { LOGGER.info("LineageRelation(0) relation id :" + lineageRelationDAO.get("Test").getRelationId()); }