日期:2014-05-20 浏览次数:20693 次
List<?> datas = session.createSQLQuery("select * from user where username='zhangsan'").list(); for(int i=0; i<datas.size(); i++){ Object[] m = (Object[]) datas.get(i); System.out.println(m[0]); System.out.println(m[1]); System.out.println(m[2]); }