org.springframework.orm.hibernate4.HibernateSystemException: identifier of an instance of com.thinkgem.jeesite.modules.sys.entity.Office was altered from 3d788bc64d8e4394ac9d5a2703cf45f1 to 231650e2359245dd813af4b8d44f54b6; nested exception is org.hibernate.HibernateException: identifier of an instance of com.thinkgem.jeesite.modules.sys.entity.Office was altered from 3d788bc64d8e4394ac9d5a2703cf45f1 to 231650e2359245dd813af4b8d44f54b6
遇到这个问题很是苦恼,现在了解的是不能修改持久化对象的主键,主要是因为springFramwork中处理一级session的dirty数据,出现错误,解决的办法,dao.clear().