网站开发与移动开发

博客园 首页 新随笔 管理

2012年3月30日 #

摘要: this.getHibernateTemplate().clear();//在一对多,多对多的时候,常常会遇到这样的错误:a different object with the same identifier value was already associated with the session getHibernateTemplate().update(user);推荐文章:这个问题,我把对象赋值为NULL,也是很好用的.在我的系统中,更新好用了,可是插入不好用了.没改前,是插入好用,而更新不好用.本来是系统中的问题,可是,catch只是捕捉到,从但是,没有把log打印出来,找原... 阅读全文
posted @ 2012-03-30 15:42 txf2004 阅读(269) 评论(0) 推荐(0) 编辑