HHH-13715 - working support for "multi-table" HQL/Criteria UPDATE and DELETE queries;

work on CTE-base multi-table handling
This commit is contained in:
Steve Ebersole 2019-11-11 18:11:42 -06:00
parent eadd9ae4bb
commit 2ca1bf876b
2 changed files with 1 additions and 18 deletions

View File

@ -6,11 +6,6 @@
*/
package org.hibernate.dialect;
import org.hibernate.metamodel.mapping.EntityMappingType;
import org.hibernate.metamodel.spi.RuntimeModelCreationContext;
import org.hibernate.query.sqm.mutation.internal.cte.CteBasedMutationStrategy;
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy;
/**
* @author Vlad Mihalcea
*/
@ -23,18 +18,6 @@ public class MariaDBDialect extends MySQL5Dialect {
return true;
}
@Override
public boolean supportsNonQueryWithCTE() {
return true;
}
@Override
public SqmMultiTableMutationStrategy getFallbackSqmMutationStrategy(
EntityMappingType rootEntityDescriptor,
RuntimeModelCreationContext runtimeModelCreationContext) {
return new CteBasedMutationStrategy( rootEntityDescriptor.getEntityPersister(), runtimeModelCreationContext );
}
@Override
protected MySQLStorageEngine getDefaultMySQLStorageEngine() {
return InnoDBStorageEngine.INSTANCE;

View File

@ -365,7 +365,7 @@ public class MySQLDialect extends Dialect {
return "drop temporary table";
}
},
AfterUseAction.NONE,
AfterUseAction.DROP,
TempTableDdlTransactionHandling.NONE
);
}