fyqt.net
当前位置:首页 >> hiBErnAtE 如何返回一个数组 >>

hiBErnAtE 如何返回一个数组

Configuration cof=new Configuration().configur(); SessionFactory sf=cof.createSessionFactory(); Session session =sf.openSession(); Query q=session.createQuery("from Myuser"); ArrayList arr=q.list();//返回ArrayList数组 然后就可...

String hql = "select b,r.username from Buy b left join b.Register r order by b.buytime"; for(Object[] obj:list){ String username = obj[1]; Buy buy = obj[0]; } 不知道可以帮到你不

网站首页 | 网站地图
All rights reserved Powered by www.fyqt.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com