Code example for SqlExceptionHelper

0
		Properties props = new Properties(); 
		props.putAll( dialect.getDefaultProperties() ); 
		props.putAll( properties ); 
		this.connectionHelper = new ManagedProviderConnectionHelper( props ); 
 
		this.sqlExceptionHelper = new SqlExceptionHelper(); 
		this.sqlStatementLogger = new SqlStatementLogger( false, true ); 
		this.formatter = FormatStyle.DDL.getFormatter(); 
	} 
 
	public SchemaUpdate(ServiceRegistry serviceRegistry, Configuration cfg) throws HibernateException { 
		this.configuration = cfg; 
 
		final JdbcServices jdbcServices = serviceRegistry.getService( JdbcServices.class ); 
		this.dialect = jdbcServices.getDialect(); 
		this.connectionHelper = new SuppliedConnectionProviderConnectionHelper( jdbcServices.getConnectionProvider() ); 
 
		this.sqlExceptionHelper = new SqlExceptionHelper(); 
		this.sqlStatementLogger = jdbcServices.getSqlStatementLogger(); 
		this.formatter = ( sqlStatementLogger.isFormat() ? FormatStyle.DDL : FormatStyle.NONE ).getFormatter(); 
Experience pair programming with AI  Get Codota for Java