原文:开发中遇到的hibernate异常:a different object with the same identifier value was already associated with the session

异常: org.springframework.orm.hibernate .HibernateSystemException: a different object with the same identifier value was already associated with the session: 日志节选: : : , CatchExceptionFilter.java: :ERRO ...

2012-05-23 10:53 0 6603 推荐指数:

查看详情

a different object with the same identifier value was already associated with the session

这个问题,我把对象赋值为NULL,也是很好用的.在我的系统,更新好用了,可是插入不好用了.没改前,是插入好用,而更新不好用.本来是系统的问题,可是,catch只是捕捉到,从但是,没有把log打印出来,找原因实在是难找.在高度数据库时,最好把异常捕捉的信息打印 ...

Thu May 10 13:21:00 CST 2012 0 13327
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM