ibatis3.x学习之oracle存储过程调用之返回结果集配置
?
@Testpublic void testProcedure() throws Exception {Reader reader = null;reader = Resources.getResourceAsReader("configuration.xml");SqlSessionFactory ssf = new SqlSessionFactoryBuilder().build(reader);reader.close();SqlSession session = ssf.openSession();Map map = new HashMap();session.selectOne("org.yhb.ibatis.dao.UserDAO.getAllUser", map);System.out.println(map);//返回的集合被放入了map中List<User> userList = (List<User>) map.get("userList");System.out.println(userList);session.close();}?
1 楼 chen00zhou 2011-01-19 如果存储过程是多个out的参数值呢?
如何处理?
我的异常网推荐解决方案:oracle存储过程,http://www.myexception.cn/oracle-develop/177537.html