Hibernate ORM H2Dialect - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM H2Dialect class.

This code example shows how to use the following methods:
		connectionProvider.configure( props );
		return connectionProvider;
	} 
 
	public static Dialect getCorrespondingDialect() {
		return new H2Dialect();
	} 
} 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
	public static volatile String DRIVER = "org.h2.Driver";
	public static volatile String URL = "jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE";
	public static volatile String USER = "sa";
	public static volatile String PASS = "";
 
	public static final Dialect DIALECT = new H2Dialect();
 
	public static Configuration buildBaseConfiguration() {
		return new Configuration()
				.setProperty( Environment.DRIVER, DRIVER )
				.setProperty( Environment.URL, URL )
				.setProperty( Environment.USER, USER )
				.setProperty( Environment.PASS, PASS )
				.setProperty( Environment.DIALECT, DIALECT.getClass().getName() );
	} 
} 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
 
/** 
 * 
 * @author Gail Badner 
 */ 
public class H2DialectOverridePrefixedVarcharSqlTypeDesc extends H2Dialect { 
	@Override 
    public SqlTypeDescriptor remapSqlTypeDescriptor(SqlTypeDescriptor sqlTypeDescriptor) { 
		return  sqlTypeDescriptor == StoredPrefixedStringType.INSTANCE.getSqlTypeDescriptor() ? 
				VarcharTypeDescriptor.INSTANCE : 
				super.remapSqlTypeDescriptor( sqlTypeDescriptor ); 
	} 
} 
 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
 
/** 
 * 
 * @author Gail Badner 
 */ 
public class H2DialectOverrideVarcharSqlCode extends H2Dialect { 
	@Override 
    public SqlTypeDescriptor getSqlTypeDescriptorOverride(int sqlCode) { 
		return  sqlCode == Types.VARCHAR ? 
				StoredPrefixedStringType.INSTANCE.getSqlTypeDescriptor() : 
				super.getSqlTypeDescriptorOverride( sqlCode ); 
	} 
} 
 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
 * <p/> 
 * https://hibernate.atlassian.net/browse/HHH-7002 
 * <p/> 
 * Note that the fix was never applied to 4.3.5.Final, although the issue states it was applied to 4.3.0.Beta4. 
 */ 
public class Fabric3H2Dialect extends H2Dialect { 
 
    public String getDropSequenceString(String sequenceName) { 
        return "drop sequence if exists " + sequenceName; 
    } 
 
    public boolean dropConstraints() { 
        return false; 
    } 
 
} 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
See Code Examples for Hibernate ORM H2Dialect Methods: