HHH-11473 - Refactor MySQL Dialects

- Add a mention of MySQL5SpatialDialect as well in the User Guide
This commit is contained in:
Vlad Mihalcea 2017-02-21 08:14:50 +02:00
parent c0e59563dc
commit 2980dc4e84
2 changed files with 3 additions and 12 deletions

View File

@ -137,8 +137,10 @@ There are several dialects for MySQL:
`MySQLSpatialDialect`::: `MySQLSpatialDialect`:::
a spatially-extended version of Hibernate `MySQLDialect` a spatially-extended version of Hibernate `MySQLDialect`
`MySQL5SpatialDialect`:::
a spatially-extended version of Hibernate `MySQL5Dialect`
`MySQLSpatial56Dialect`::: `MySQLSpatial56Dialect`:::
a spatially-extended version of Hibernate `MySQL5DBDialect`. a spatially-extended version of Hibernate `MySQL55Dialect`.
[NOTE] [NOTE]
==== ====

View File

@ -15,9 +15,7 @@ import java.util.Map;
import org.hibernate.HibernateException; import org.hibernate.HibernateException;
import org.hibernate.boot.model.TypeContributions; import org.hibernate.boot.model.TypeContributions;
import org.hibernate.dialect.InnoDBStorageEngine;
import org.hibernate.dialect.MySQL55Dialect; import org.hibernate.dialect.MySQL55Dialect;
import org.hibernate.dialect.MySQLStorageEngine;
import org.hibernate.dialect.function.SQLFunction; import org.hibernate.dialect.function.SQLFunction;
import org.hibernate.dialect.function.StandardSQLFunction; import org.hibernate.dialect.function.StandardSQLFunction;
import org.hibernate.service.ServiceRegistry; import org.hibernate.service.ServiceRegistry;
@ -151,13 +149,4 @@ public class MySQL56SpatialDialect extends MySQL55Dialect implements SpatialDial
public boolean supports(SpatialFunction function) { public boolean supports(SpatialFunction function) {
return dialectDelegate.supports( function ); return dialectDelegate.supports( function );
} }
/**
* MySQL 5.6 uses InnoDB by default.
* @return Default MySQL Storage Engine.
*/
@Override
protected MySQLStorageEngine getDefaultMySQLStorageEngine() {
return InnoDBStorageEngine.INSTANCE;
}
} }