hibernate删除对象报错解决办法:
a different object with the same identifier value was already associated with the session: [com.ky.data.bo.analysisManage.AnalysisManage#5fcf3e84ac9dee9368538144]; nested exception is org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session:
删除前,不要拿对象做赋值操作。
AnalysisManage amOne = analysisManageService.findAnalysisManageById(amfor.getId()); //该操作可能导致对象有session缓存。
注:仅限于个人操作使用。