我用hibernate的时候写了一个测试类,保存了两个有外键关联的对象,第一次成功保存,随后我在数据库中将数据删除,再保存后就出现了以下报错,查资料有大佬说可能是一级缓存的问题,可是如果session关闭一级缓存也会清空呀,然后一直卡在这,随后我试着重启了一下eclipse问题就解决了,有点自闭。。希望路过的大佬能帮忙解惑一下

ERROR org.hibernate.internal.SessionImpl - HHH000346: Error during managed flush [Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1]
Error during managed flush [Batch update returned unexpected row count from update [0]

相关文章:

  • 2021-11-01
  • 2022-12-23
  • 2021-06-22
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-12
  • 2022-02-18
  • 2022-12-23
相关资源
相似解决方案