https://hibernate.atlassian.net/browse/HHH-15517 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 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. |