Similar to what we do for other dialects, we should save the simple id values for associations whose target type uses a non-composite key. Only where a composite key type is referenced, a JSON structure should be used.