[https://hibernate.atlassian.net/browse/HHH-15517|https://hibernate.atlassian.net/browse/HHH-15517|smart-link] has shown again that the creation of temporary tables might not always be possible with the database user which is used for normal operations. For global and persistent temporary tables, we could emit the DDL in hbm2ddl instead and skip creating/dropping tables during runtime. I suggest we introduce a configuration option for controlling this.
We might need new {{Dialect}} methods though which will have to return us something similar to {{SqmMultiTableInsertStrategy}} and {{SqmMultiTableMutationStrategy}}, because the regular methods {{getFallbackSqmInsertStrategy}} and {{getFallbackSqmMutationStrategy}} require the mapping model to be available, which we don’t have in the {{SchemaManagementToolCoordinator}}. |
|