Skip to content

Commit af9453e

Browse files
committed
HHH-19521 Implement temporary and cte table derivation based on boot model
1 parent 8fcee49 commit af9453e

19 files changed

+365
-513
lines changed

hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
import org.hibernate.dialect.temptable.LegacyTemporaryTableStrategy;
5959
import org.hibernate.dialect.temptable.PersistentTemporaryTableStrategy;
6060
import org.hibernate.dialect.temptable.StandardTemporaryTableExporter;
61-
import org.hibernate.dialect.temptable.TemporaryTable;
6261
import org.hibernate.dialect.temptable.TemporaryTableExporter;
6362
import org.hibernate.dialect.temptable.TemporaryTableKind;
6463
import org.hibernate.dialect.temptable.TemporaryTableStrategy;
@@ -3209,15 +3208,7 @@ public SqmMultiTableMutationStrategy getFallbackSqmMutationStrategy(
32093208
public SqmMultiTableInsertStrategy getFallbackSqmInsertStrategy(
32103209
EntityMappingType entityDescriptor,
32113210
RuntimeModelCreationContext runtimeModelCreationContext) {
3212-
return new PersistentTableInsertStrategy(
3213-
TemporaryTable.createEntityTable(
3214-
entityDescriptor,
3215-
name -> TemporaryTable.ENTITY_TABLE_PREFIX + name,
3216-
this,
3217-
runtimeModelCreationContext
3218-
),
3219-
runtimeModelCreationContext.getSessionFactory()
3220-
);
3211+
return new PersistentTableInsertStrategy( entityDescriptor, runtimeModelCreationContext );
32213212
}
32223213

32233214
// UDT support ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)