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

This code example shows how to use the following methods:
    return org.postgresql.Driver.class; 
  } 
 
  @Override 
  protected Dialect createHibernateDialect() { 
    return new PostgreSQLDialect(); 
  } 
 
  @Override 
  protected ElSqlConfig createElSqlConfig() { 
    return ElSqlConfig.POSTGRES; 
  } 
 
  //------------------------------------------------------------------------- 
  @Override 
  public String sqlNextSequenceValueSelect(final String sequenceName) { 
    return "SELECT nextval('" + sequenceName + "')"; 
  } 
 
  @Override 
6
CodeRank
This code example shows how to use the following methods:
    return ReflectionUtils.loadClass("com.vertica.Driver"); 
  } 
 
  @Override 
  protected Dialect createHibernateDialect() { 
    return new PostgreSQLDialect();  // nearest match 
  } 
 
  @Override 
  protected ElSqlConfig createElSqlConfig() { 
    return ElSqlConfig.VERTICA; 
  } 
 
  //------------------------------------------------------------------------- 
  @Override 
  public String sqlNextSequenceValueSelect(final String sequenceName) { 
    return "SELECT nextval('" + sequenceName + "')"; 
  } 
 
  @Override 
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 PostgreSQLDialect();
    } 
    return _hibernateDialect;
  } 
 
  @Override 
  public Class<?> getJDBCDriverClass() {
    return org.postgresql.Driver.class; 
  } 
 
  @Override 
  public String getDatabaseName() {
    return "postgres"; 
  } 
 
5
CodeRank
This code example shows how to use the following methods:
 
/** 
 * @author Eric Dalquist 
 * @version $Revision$ 
 */ 
public class PostgreSQL81Dialect extends PostgreSQLDialect { 
    @Override 
    public boolean supportsIfExistsBeforeTableName() { 
        return false; 
    } 
} 
5
CodeRank
This code example shows how to use the following methods:
 
  //------------------------------------------------------------------------- 
  @Override 
  public synchronized Dialect getHibernateDialect() {
    if (_hibernateDialect == null) {
      _hibernateDialect = new PostgreSQLDialect(); // use Postgres as closest match
    } 
    return _hibernateDialect;
  } 
 
  @Override 
  public Class<?> getJDBCDriverClass() {
    return ReflectionUtils.loadClass("com.vertica.Driver"); 
  } 
 
  @Override 
  public String getDatabaseName() {
    return "vertica"; 
  } 
 
5
CodeRank