mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
HHH-11473 - Refactor MySQL Dialects
- MySQL56SpatialDialect can default to InnoDB by default
This commit is contained in:
parent
91d1f38d95
commit
c0e59563dc
@ -7,9 +7,6 @@
|
||||
|
||||
package org.hibernate.spatial.dialect.mysql;
|
||||
|
||||
import org.hibernate.dialect.InnoDBStorageEngine;
|
||||
import org.hibernate.dialect.MySQLStorageEngine;
|
||||
|
||||
/**
|
||||
* Spatial Dialect for MySQL 5.6 with InnoDB engine.
|
||||
*
|
||||
@ -20,9 +17,4 @@
|
||||
@SuppressWarnings("deprecation")
|
||||
public class MySQL56InnoDBSpatialDialect extends MySQL56SpatialDialect {
|
||||
|
||||
@Override
|
||||
protected MySQLStorageEngine getDefaultMySQLStorageEngine() {
|
||||
return InnoDBStorageEngine.INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -15,7 +15,9 @@
|
||||
|
||||
import org.hibernate.HibernateException;
|
||||
import org.hibernate.boot.model.TypeContributions;
|
||||
import org.hibernate.dialect.InnoDBStorageEngine;
|
||||
import org.hibernate.dialect.MySQL55Dialect;
|
||||
import org.hibernate.dialect.MySQLStorageEngine;
|
||||
import org.hibernate.dialect.function.SQLFunction;
|
||||
import org.hibernate.dialect.function.StandardSQLFunction;
|
||||
import org.hibernate.service.ServiceRegistry;
|
||||
@ -149,4 +151,13 @@ public boolean supportsFiltering() {
|
||||
public boolean supports(SpatialFunction function) {
|
||||
return dialectDelegate.supports( function );
|
||||
}
|
||||
|
||||
/**
|
||||
* MySQL 5.6 uses InnoDB by default.
|
||||
* @return Default MySQL Storage Engine.
|
||||
*/
|
||||
@Override
|
||||
protected MySQLStorageEngine getDefaultMySQLStorageEngine() {
|
||||
return InnoDBStorageEngine.INSTANCE;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user