![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate
iteye_2629
这个作者很懒,什么都没留下…
展开
-
a different object with the same identifier value was already associated with th
解决方案: http://blog.csdn.net/piggerman/article/details/2804556 Session s = sessionFactory.getCurrentSession(); s.clear(); 在session创建后执行即可。原创 2013-12-05 05:08:48 · 102 阅读 · 0 评论 -
hibernate的update()方法无法更新,不报错
原因是hibernate的update方法操作的是缓存,可以flush下先。 设置缓存为false理论上也可。原创 2013-12-06 22:32:35 · 1061 阅读 · 0 评论 -
hibernate多对多,更新时外键为null问题
<!-- 配置一对多的关系 --> <set name="providerProducts" inverse="true"> <key column="product_id" /> <one-to-many class="ProviderProduct" /> </se原创 2013-12-20 06:30:15 · 917 阅读 · 0 评论 -
Spring / Hibernate / JUnit - No Hibernate Session bound to Thread
http://stackoverflow.com/questions/734614/spring-hibernate-junit-no-hibernate-session-bound-to-thread Wrong, that will just fill your code with session management code. First, add a transaction ...原创 2014-01-03 10:49:43 · 137 阅读 · 0 评论