HHH-8912 - @NotFound applied to *-to-one relation in superclass
(cherry picked from commit 1e7b03a2aeb65102706435fde3cfa0f084282cc1)
HHH-8912 - Test case
(cherry picked from commit e025725f663da0b56e3895e9f9ca846e3d444a78)