Fixup "inversedBy" and "mappedBy" handling.