(Note that an alternative resolution to this bug would be to reject the mapping, and ask the user to add a @MapsId annotation.)