解决javax.persistence.EntityNotFoundException: Unable to find
2020-12-13 04:53
标签:http 记录 mamicode 关联 one com except net src 原: javax.persistence.EntityNotFoundException: Unable to find 原因: 无论是@OneToOne 还是@ManyToOne,出现这个原因都是因为子表(被关联表)中没有主表(关联表)中ID所对应的记录。 解决:@NotFound(action= NotFoundAction.IGNORE)//这样,当子表中没找到数据时,主表中对应的field就是null,而不会报错了 解决javax.persistence.EntityNotFoundException: Unable to find 标签:http 记录 mamicode 关联 one com except net src 原文地址:https://www.cnblogs.com/mfsqZzz/p/11124820.html
上一篇:Java(2)
下一篇:window批处理-4.call
文章标题:解决javax.persistence.EntityNotFoundException: Unable to find
文章链接:http://soscw.com/essay/30185.html