![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Hibernate
过了爱做梦的年纪s
归零
展开
-
关于hibernate中对象的三种状态分析
原文地址: http://blog.csdn.net/communicate_/article/details/8452786________________________________________________________________________一,首先hibernate中对象的状态有三种:瞬态、游离态和持久态,三种状态转化的方法都是通过se转载 2015-09-04 14:59:31 · 342 阅读 · 0 评论 -
SM整合出错:ClassCastException: tk.licer.model.Role_$$_javassist_0 cannot be cast to javassist.util.proxy
1.问题spring整合hibernate做web开发时,web.xml中配置openSessionInView,使用hibernateTemplate调用load方法实现延迟加载(lazy_load).openSessionInView定义 openSessionInView org.springframework.orm.hibernate4.support.原创 2016-05-23 16:01:00 · 1573 阅读 · 0 评论 -
Mysql 设置超时重连 autoReconnect=true
1需求昨天在vps测试机上部署了web Demo(SH+mysql)程序,今天访问发现挂了.吓得我赶快把log down下来压压惊.org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested excep原创 2016-06-05 13:23:47 · 25604 阅读 · 5 评论