[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 的解决的办法?
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 的解决的办法?
映射文件没有设置什么,只是有个<bag>的自链的设置.然后就有个Bean应用了这个对象作为主键关联,此Bean是复合主键!
嗯.我先试一下你的建议!谢谢!
不过还是得谢谢各位的帮助.谢谢了1