
Hibernate
文章平均质量分 76
iteye_1408
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
hibernate的hql语句中in的用法
有一次遇到需要在hql语句里用到in了,上一次查了半天也没搞定,最后索性用and、and、and代替了,但这次in()集合是需要SQL查出来的id集合,没办法,再次研究。 本着抄袭要注明出处的原则,我参考的博客是:http://blessht.iteye.com/blog/1051421 先写我的报错的hql语句,我的原语句是“from Member where delFlag = ...原创 2012-07-12 14:21:18 · 815 阅读 · 0 评论 -
hibernate的session的No Hibernate Session bound to thread
在SSH框架的项目中,做数据库操作,报出如下异常: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here。 报错原因是在dao操作时,使用了原生的SQL语句查询,之前没有报错是因为一直用的是Hql语句,用criteria或者q...原创 2012-03-16 13:35:26 · 209 阅读 · 0 评论