The issue also appears when using a "Map" mapping with @MapKeyColumn(insertable = false, updatable = false) annotation. I have updated the test case to include this mapping too. Apparently it seems that when we specify updatable = false and insertable = false, the hibernate code is skipping the order/key column which leads to nulls and hence the error. Are there any workarounds to this issue other than compromising on having the values for insertable and updatable to be default i.e. true? Since this issue is blocking us from upgrading hibernate we are trying to see if there are alternatives. |