EntityNotFoundException in Hibernate Many To One mapping however data exist

前端 未结 9 1472
庸人自扰
庸人自扰 2020-12-13 12:39

I am getting javax.persistence.EntityNotFoundException error when I am trying to get User through Invoice object

invoice.getUser().getId()

Error is as follo

9条回答
  •  -上瘾入骨i
    2020-12-13 12:51

    I had the same problem, and

    @NotFound(action = NotFoundAction.IGNORE)
    

    solved my problem.

提交回复
热议问题