org.hibernate.AssertionFailure 问题
[2010-11-24 15:40:38,031] [Thread-16] ERROR org.hibernate.AssertionFailure - an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
org.hibernate.AssertionFailure: collection [] was not processed by flush()
这个问题困扰我几天了,网上找了都没有什么头绪.还请大虾们帮忙看看!
网上有说: 应该是在flush或者事务提交的过程中发生的。这一般由我们在事务开始至事务提交的过程中进行了不正确的操作导致,也会在多线程同时操作一个Session时发生.
由于经常报org.hibernate.AssertionFailure: collection [] was not processed by flush()的错误.
我用JDBC的方式update数据,可是没想到Hibernate commit方法隐式的调用了flush方法.不知这里有没有Hibernate 的解决的办法?