Example usage for org.hibernate.dialect Dialect buildSQLExceptionConverter

List of usage examples for org.hibernate.dialect Dialect buildSQLExceptionConverter

Introduction

In this page you can find the example usage for org.hibernate.dialect Dialect buildSQLExceptionConverter.

Prototype

@Deprecated
public SQLExceptionConverter buildSQLExceptionConverter() 

Source Link

Document

Build an instance of the SQLExceptionConverter preferred by this dialect for converting SQLExceptions into Hibernate's JDBCException hierarchy.

Usage

From source file:com.clican.pluto.orm.tool.DatabaseMetadata.java

License:LGPL

public DatabaseMetadata(Connection connection, Dialect dialect, boolean extras) throws SQLException {
    sqlExceptionConverter = dialect.buildSQLExceptionConverter();
    meta = connection.getMetaData();//www .ja v a2  s .  co  m
    this.extras = extras;
    initSequences(connection, dialect);
}