原文:開發中遇到的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