Hibernate ORM DerbyDialect - 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 DerbyDialect class.

This code example shows how to use the following methods:registerColumnType
 * See https://hibernate.onjira.com/browse/HHH-7264 for details 
 * 
 */ 
public class FixedDerbyDialect extends DerbyDialect {
 
    public FixedDerbyDialect() { 
        registerColumnType(Types.CLOB, "clob");
    } 
} 
6
CodeRank
This code example shows how to use the following methods:
    return org.apache.derby.jdbc.EmbeddedDriver.class; 
  } 
 
  @Override 
  protected Dialect createHibernateDialect() { 
    return new DerbyDialect(); 
  } 
 
  @Override 
  protected ElSqlConfig createElSqlConfig() { 
    return ElSqlConfig.DEFAULT;  // not tested for Derby 
  } 
 
  //------------------------------------------------------------------------- 
  @Override 
  public String sqlNextSequenceValueSelect(final String sequenceName) { 
    return "SELECT NEXT VALUE FOR " + sequenceName + " FROM sysibm.sysdummy1"; 
  } 
 
} 
6
CodeRank
This code example shows how to use the following methods:
  //------------------------------------------------------------------------- 
  @Override 
  public synchronized Dialect getHibernateDialect() {
    if (_hibernateDialect == null) {
      // constructed lazily so we don't get log message about 'using dialect' if we're not actually using it 
      _hibernateDialect = new DerbyDialect();
    } 
    return _hibernateDialect;
  } 
 
  @Override 
  public Class<?> getJDBCDriverClass() {
    return org.apache.derby.jdbc.EmbeddedDriver.class; 
  } 
 
  @Override 
  public String getDatabaseName() {
    return "derby"; 
  } 
 
5
CodeRank
This code example shows how to use the following methods:
		if ("MySQL".equals(databaseName))
			return new MySQLDialect();
		if ("PostgreSQL".equals(databaseName))
			return new PostgreSQLDialect();
		if ("Apache Derby".equals(databaseName))
			return new DerbyDialect();
		if ("ingres".equalsIgnoreCase(databaseName)) {
			switch (databaseMajorVersion) {
			case 9: 
				if (databaseMinorVersion > 2)
					return new Ingres9Dialect();
				else 
					return new IngresDialect();
 
			case 10: 
				return new Ingres10Dialect();
			} 
			return new IngresDialect();
		} 
		if (databaseName.startsWith("Microsoft SQL Server"))
4
CodeRank