To change this I have patched the interface org.apache.torque.engine.platform.Platform and added a method public getNullString(Column col) since the PlatformHypersonicImpl needed to know if the column is a not null and if the column uses the native id-method.