| Currently the command for deleting all rows from a global temporary table is hard-coded as "delete from <tableName>" in GlobalTemporaryTableBulkIdStrategy.cleanUpRows(). On HANA "delete from" is not supported for global temporary column tables. Instead, one has to use "truncate table". As far as I can tell there is currently no good way of changing the "delete from" statement without pretty much re-implementing the entire GlobalTemporaryTableBulkIdStrategy class. To fix this a method named, for example, getTruncateIdTableCommand() could be added to org.hibernate.hql.spi.id.IdTableSupport which returns "delete from" by default and can be overridden by sub-classes requiring something else. |