org.hibernate.dialect.HANADialect Maven / Gradle / Ivy
Show all versions of beangle-hibernate-core Show documentation
/*
* 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 org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfo;
/**
* An SQL dialect for the SAP HANA Platform and Cloud.
*
* For more information on SAP HANA Cloud, refer to the
* SAP HANA Cloud SQL Reference Guide.
* For more information on SAP HANA Platform, refer to the
* SAP HANA Platform SQL Reference Guide.
*
* Column tables are created by this dialect by default when using the auto-ddl feature.
*
* @author Andrew Clemons
* @author Jonathan Bregler
*/
@SuppressWarnings("removal")
public class HANADialect extends AbstractHANADialect {
static final DatabaseVersion MINIMUM_VERSION = DatabaseVersion.make( 1, 0, 120 );
public HANADialect(DialectResolutionInfo info) {
this( HANAServerConfiguration.fromDialectResolutionInfo( info ), true );
registerKeywords( info );
}
public HANADialect() {
// SAP HANA 1.0 SPS12 R0 is the default
this( MINIMUM_VERSION );
}
public HANADialect(DatabaseVersion version) {
this( new HANAServerConfiguration( version ), true );
}
public HANADialect(DatabaseVersion version, boolean defaultTableTypeColumn) {
this( new HANAServerConfiguration( version ), defaultTableTypeColumn );
}
public HANADialect(HANAServerConfiguration configuration, boolean defaultTableTypeColumn) {
super( configuration, defaultTableTypeColumn );
}
@Override
protected DatabaseVersion getMinimumSupportedVersion() {
return MINIMUM_VERSION;
}
}