Examples of SqlStatementLogger


Examples of org.hibernate.jdbc.util.SQLStatementLogger

//    settings.setShowSqlEnabled(showSql);

    boolean formatSql = PropertiesHelper.getBoolean(Environment.FORMAT_SQL, properties);
//    settings.setFormatSqlEnabled(formatSql);

    settings.setSqlStatementLogger( new SQLStatementLogger( showSql, formatSql ) );

    boolean useStatistics = PropertiesHelper.getBoolean(Environment.GENERATE_STATISTICS, properties);
    log.info( "Statistics: " + enabledDisabled(useStatistics) );
    settings.setStatisticsEnabled(useStatistics);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.