I am getting javax.persistence.EntityNotFoundException error when I am trying to get User through Invoice object
invoice.getUser().getId()
I had the same problem, and
@NotFound(action = NotFoundAction.IGNORE)
solved my problem.