diff --git a/hibernate-core/src/main/java/org/hibernate/boot/registry/selector/internal/StrategySelectorBuilder.java b/hibernate-core/src/main/java/org/hibernate/boot/registry/selector/internal/StrategySelectorBuilder.java index af32adc864..e39d457fe1 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/registry/selector/internal/StrategySelectorBuilder.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/registry/selector/internal/StrategySelectorBuilder.java @@ -44,7 +44,6 @@ import org.hibernate.dialect.Ingres10Dialect; import org.hibernate.dialect.Ingres9Dialect; import org.hibernate.dialect.IngresDialect; import org.hibernate.dialect.InterbaseDialect; -import org.hibernate.dialect.JDataStoreDialect; import org.hibernate.dialect.MckoiDialect; import org.hibernate.dialect.MimerSQLDialect; import org.hibernate.dialect.MySQL57Dialect; @@ -211,7 +210,6 @@ public class StrategySelectorBuilder { addDialect( strategySelector, Ingres9Dialect.class ); addDialect( strategySelector, Ingres10Dialect.class ); addDialect( strategySelector, InterbaseDialect.class ); - addDialect( strategySelector, JDataStoreDialect.class ); addDialect( strategySelector, MckoiDialect.class ); addDialect( strategySelector, MimerSQLDialect.class ); addDialect( strategySelector, MySQL5Dialect.class ); diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/JDataStoreDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/JDataStoreDialect.java deleted file mode 100755 index 351cb26969..0000000000 --- a/hibernate-core/src/main/java/org/hibernate/dialect/JDataStoreDialect.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Hibernate, Relational Persistence for Idiomatic Java - * - * License: GNU Lesser General Public License (LGPL), version 2.1 or later. - * See the lgpl.txt file in the root directory or . - */ -package org.hibernate.dialect; - -import java.sql.Types; - -import org.hibernate.cfg.Environment; -import org.hibernate.dialect.identity.IdentityColumnSupport; -import org.hibernate.dialect.identity.JDataStoreIdentityColumnSupport; - -/** - * A Dialect for JDataStore. - * - * @author Vishy Kasar - */ -public class JDataStoreDialect extends Dialect { - - public JDataStoreDialect() { - super(); - //only surviving documentation known to Google: - //https://web.mit.edu/jbuilder_v2005/distrib/share/doc/jds_devgd.pdf - - //'bit' is a synonym for 'boolean' - registerColumnType( Types.BIT, "tinyint" ); - - //no 'blob' nor 'clob', at least not in 7 - registerColumnType( Types.BLOB, "varbinary" ); - registerColumnType( Types.CLOB, "varchar" ); - - //no precision, at least not in 7 - registerColumnType( Types.TIMESTAMP, "timestamp" ); - registerColumnType( Types.TIMESTAMP_WITH_TIMEZONE, "timestamp" ); - - getDefaultProperties().setProperty( Environment.STATEMENT_BATCH_SIZE, DEFAULT_BATCH_SIZE ); - } - - @Override - public String getAddColumnString() { - return "add"; - } - - @Override - public boolean dropConstraints() { - return false; - } - - @Override - public String getCascadeConstraintsString() { - return " cascade"; - } - - @Override - public String getNoColumnsInsertString() { - return "default values"; - } - - @Override - public boolean supportsColumnCheck() { - return false; - } - - @Override - public boolean supportsTableCheck() { - return false; - } - - @Override - public IdentityColumnSupport getIdentityColumnSupport() { - return new JDataStoreIdentityColumnSupport(); - } - -}