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

This code example shows how to use the following methods: getFormatter
		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(); 
	} 
 
Full Snippet Info
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java