Problem:
The field HistoricVariableUpdate#variableInstanceId will not be initialized whenever HistoricVariableUpdates will be fetched from the database.
Hint:
The mapping historicVariableUpdateResultMap inside the HistoricDetail.xml does not map the column VAR_INST_ID_ to the field variableInstanceId.
(Is the mapping historicDetailResultMap_postgres obselete?)