ssh框架 修改时报错 求大神指导

修改员工部门时 就保存错误

 org.springframework.orm.hibernate4.HibernateSystemException: identifier of an instance of com.val.ssh.entities.Department was altered from 1 to 4; nested exception is org.hibernate.HibernateException: identifier of an instance of com.val.ssh.entities.Department was altered from 1 to 4

修改时如果id不为空就get员工
图片说明

保存时 部门信息只有id改变了 , 就保存错误了
图片说明

场景说明模糊
没有业务说明
没有报错信息
没人知道你说什么的

这种问题直接略过 略略略略

说了大半天还没有找到错误………………

这是报错信息
org.springframework.orm.hibernate4.HibernateSystemException: identifier of an instance of com.val.ssh.entities.Department was altered from 1 to 4; nested exception is org.hibernate.HibernateException: identifier of an instance of com.val.ssh.entities.Department was altered from 1 to 4