[JIRA] (HHH-16336) Modify the newly introduced mappedBy type check to be more lenient