摘要: ` String hql = "from SysUser o join o.set where owner_id = :newName"; Query query = this.getCurrentSession().createQuery(hql); query.setParameter(0, u 阅读全文
posted @ 2017-11-09 16:16 comeluder 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 文章一: 1.用hql语句 ` String hql="select student.id, student.name ,class.name from student映射实体类名 as student , class映射实体类名 as class where class.id = student. 阅读全文
posted @ 2017-11-09 15:47 comeluder 阅读(846) 评论(0) 推荐(0) 编辑