hql学习记录
`
String hql = "from SysUser o join o.set where owner_id = :newName";
Query query = this.getCurrentSession().createQuery(hql);
query.setParameter(0, userName);
List<Object[]> list1 = query.list();
Iterator it=list1.iterator();
while(it.hasNext()){
Object[] o=(Object[]) it.next();
System.out.print(o[0]);
System.out.println(o[1]);
}
`