JPA外键关联,进行修改外键时出错identifier of an instance of …… was altered from
identifier of an instance of A表 was altered from 2 to 3
http://bbs.csdn.net/topics/390534402/ 问题分析帖子
http://blog.csdn.net/aibisoft/article/details/47999593
获取entityManager对象
@PersistenceContext
private EntityManager entityManager;
调用其clear方法清除缓存再进行保存
entityManager.clear();
缓存identifier of an instance of com.topsec.tss.web.model.event.Event was altered from … to …
最新推荐文章于 2023-03-22 18:00:21 发布