异常:
identifier of an instance of com.usermgr.model.User was altered from 张三 to 李四; nested exception is org.hibernate.HibernateException: identifier of an instance of com.usermgr.model.User was altered from 张三 to 李四
原因:
少判断条件,本来是修改操作,直接再增加一个类属性时就会报此错误!
identifier of an instance of com.usermgr.model.User was altered from 张三 to 李四; nested exception is org.hibernate.HibernateException: identifier of an instance of com.usermgr.model.User was altered from 张三 to 李四
原因:
少判断条件,本来是修改操作,直接再增加一个类属性时就会报此错误!