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

這個問題,我把對象賦值為NULL,也是很好用的.在我的系統中,更新好用了,可是插入不好用了.沒改前,是插入好用,而更新不好用.本來是系統中的問題,可是,catch只是捕捉到,從但是,沒有把log打印出來,找原因實在是難找.在高度數據庫時,最好把異常捕捉中的信息打印出來.org.springframework.orm.hibernate.HibernateSystemException: a dif ...

2012-05-10 05:21 0 13327 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM