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
Stop searching for code, let great code find you!  Add Codota to your java IDE