读书人

hibernate hql 多个1查询

发布时间: 2013-11-08 17:52:01 作者: rapoo

hibernate hql 多个一查询

Session s=sessionFactory.getCurrentSession();s.beginTransaction();String hql="from TempPhotoEdit tempPhotoEdit left join fetch tempPhotoEdit.tempPlan left join fetch tempPhotoEdit.systemFodder where IB_ID=?";List<TempPhotoEdit> l=s.createQuery(hql).setParameter(0,"25").list();System.out.println(l);s.getTransaction().commit();
?

读书人网 >开源软件

热点推荐