JPA事务错误(不在数据库端,值被持久化)

发布于 2024-10-09 12:29:28 字数 202 浏览 0 评论 0原文

我面临以下错误:

尝试将 id“com.abc.java”分配给新实例“com.abc.java”失败; L1 缓存中已存在具有此 id 的对象。在重用其 id 之前,您必须删除该对象(在上一个事务或当前事务中)。当水平或垂直映射的类使用自动增量应用程序标识并且不使用应用程序标识类的层次结构时,也会发生此错误。 -

I'm facing the below error :

Attempt to assign id "com.abc.java" to new instance "com.abc.java" failed; there is already an object in the L1 cache with this id. You must delete this object (in a previous transaction or the current one) before reusing its id. This error can also occur when a horizontally or vertically mapped classes uses auto-increment application identity and does not use a hierarchy of application identity classes. -

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文