HHH-14126 Add CockroachDB to DefaultDialectSelector and update documentation to mention the new dialect
This commit is contained in:
parent
e8f310a659
commit
509db7cc79
|
@ -264,7 +264,9 @@ If for some reason it is not able to determine the proper one or you want to use
|
||||||
[width="100%",cols="28%,72%",options="header",]
|
[width="100%",cols="28%,72%",options="header",]
|
||||||
|=======================================================================
|
|=======================================================================
|
||||||
|Dialect (short name) |Remarks
|
|Dialect (short name) |Remarks
|
||||||
|Cache71 |Support for the Caché database, version 2007.1
|
|Cache71 |Support for the Caché database, version 2007.1.
|
||||||
|
|CockroachDB192 |Support for the CockroachDB database version 19.2.
|
||||||
|
|CockroachDB201 |Support for the CockroachDB database version 20.1.
|
||||||
|CUBRID |Support for the CUBRID database, version 8.3. May work with later versions.
|
|CUBRID |Support for the CUBRID database, version 8.3. May work with later versions.
|
||||||
|DB2 |Support for the DB2 database, version 8.2.
|
|DB2 |Support for the DB2 database, version 8.2.
|
||||||
|DB297 |Support for the DB2 database, version 9.7.
|
|DB297 |Support for the DB2 database, version 9.7.
|
||||||
|
|
|
@ -10,6 +10,8 @@ import java.util.Objects;
|
||||||
|
|
||||||
import org.hibernate.dialect.CUBRIDDialect;
|
import org.hibernate.dialect.CUBRIDDialect;
|
||||||
import org.hibernate.dialect.Cache71Dialect;
|
import org.hibernate.dialect.Cache71Dialect;
|
||||||
|
import org.hibernate.dialect.CockroachDB192Dialect;
|
||||||
|
import org.hibernate.dialect.CockroachDB201Dialect;
|
||||||
import org.hibernate.dialect.DB2390Dialect;
|
import org.hibernate.dialect.DB2390Dialect;
|
||||||
import org.hibernate.dialect.DB2390V8Dialect;
|
import org.hibernate.dialect.DB2390V8Dialect;
|
||||||
import org.hibernate.dialect.DB2400Dialect;
|
import org.hibernate.dialect.DB2400Dialect;
|
||||||
|
@ -89,6 +91,12 @@ public class DefaultDialectSelector implements LazyServiceResolver<Dialect> {
|
||||||
if ( name.equals( "Cache71" ) ) {
|
if ( name.equals( "Cache71" ) ) {
|
||||||
return Cache71Dialect.class;
|
return Cache71Dialect.class;
|
||||||
}
|
}
|
||||||
|
if ( name.equals( "CockroachDB192" ) ) {
|
||||||
|
return CockroachDB192Dialect.class;
|
||||||
|
}
|
||||||
|
if ( name.equals( "CockroachDB201" ) ) {
|
||||||
|
return CockroachDB201Dialect.class;
|
||||||
|
}
|
||||||
if ( name.equals( "CUBRID" ) ) {
|
if ( name.equals( "CUBRID" ) ) {
|
||||||
return CUBRIDDialect.class;
|
return CUBRIDDialect.class;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue