public static Configuration buildBaseConfiguration() { return new Configuration() .setProperty( Environment.DRIVER, DRIVER ) .setProperty( Environment.URL, URL ) .setProperty( Environment.USER, USER ) .setProperty( Environment.PASS, PASS ) .setProperty( Environment.DIALECT, DIALECT.getClass().getName() ); }
@Override public void configure(Configuration cfg) { cfg.setProperty(Environment.USE_SECOND_LEVEL_CACHE, "false"); cfg.setProperty(Environment.GENERATE_STATISTICS, "true"); }
public void configure(Configuration cfg) { cfg.setProperty( Environment.USE_SECOND_LEVEL_CACHE, "true" ); cfg.setProperty( Environment.USE_QUERY_CACHE, "true" ); cfg.setProperty( Environment.GENERATE_STATISTICS, "true" ); }
@Override public void configure(Configuration cfg) { cfg.setProperty( Environment.HBM2DDL_IMPORT_FILES, "/org/hibernate/test/fileimport/humans.sql,/org/hibernate/test/fileimport/dogs.sql" ); }
@Override protected void configure(Configuration configuration) { configuration.setProperty( Environment.DIALECT, OracleSeqIdGenDialect.class.getName() ); configuration.setProperty( Environment.USE_NEW_ID_GENERATOR_MAPPINGS, "false" ); configuration.setProperty( Environment.USE_GET_GENERATED_KEYS, "true" ); }
@Override public void configure(Configuration cfg) { cfg.setProperty( Environment.HBM2DDL_IMPORT_FILES, "/org/hibernate/test/fileimport/multi-line-statements.sql" ); cfg.setProperty( Environment.HBM2DDL_IMPORT_FILES_SQL_EXTRACTOR, MultipleLinesSqlCommandExtractor.class.getName() ); }
public void configure(Configuration cfg) { super.configure( cfg ); cfg.setProperty( Environment.USE_QUERY_CACHE, "true" ); cfg.setProperty( Environment.CACHE_REGION_PREFIX, "foo" ); cfg.setProperty( Environment.USE_SECOND_LEVEL_CACHE, "true" ); cfg.setProperty( Environment.GENERATE_STATISTICS, "true" ); }
@Override protected void configure(final Configuration configuration) { // enable LL without TX, which used to cause problems when serializing proxies (see HHH-12720) configuration.setProperty( AvailableSettings.ENABLE_LAZY_LOAD_NO_TRANS, Boolean.TRUE.toString() ); }
@Override public void configure(Configuration cfg) { super.configure( cfg ); cfg.setProperty( Environment.USE_QUERY_CACHE, "false" ); cfg.setProperty( Environment.GENERATE_STATISTICS, "true" ); cfg.setProperty( Environment.QUERY_TRANSLATOR, ASTQueryTranslatorFactory.class.getName() ); }
@Override protected void configure(Configuration configuration) { super.configure(configuration); configuration.setProperty(AvailableSettings.SHOW_SQL, Boolean.TRUE.toString()); configuration.setProperty(AvailableSettings.FORMAT_SQL, Boolean.TRUE.toString()); }
@Override protected void configure(Configuration configuration) { super.configure( configuration ); configuration.setProperty( AvailableSettings.SHOW_SQL, Boolean.TRUE.toString() ); configuration.setProperty( AvailableSettings.FORMAT_SQL, Boolean.TRUE.toString() ); // configuration.setProperty( AvailableSettings.GENERATE_STATISTICS, "true" ); }
public void configure(Configuration cfg) { if ( Oracle8iDialect.class.isInstance( getDialect() ) ) { cfg.registerTypeOverride( TextAsMaterializedClobType.INSTANCE ); } cfg.setProperty(Environment.USE_SECOND_LEVEL_CACHE, "false"); cfg.setProperty(Environment.GENERATE_STATISTICS, "true"); cfg.setProperty(Environment.DEFAULT_BATCH_FETCH_SIZE, "2"); }
@Override protected void configure(Configuration configuration) { super.configure( configuration ); configuration.setProperty( AvailableSettings.GENERATE_STATISTICS, "true" ); }
@Override public void configure(Configuration cfg) { super.configure( cfg ); cfg.setProperty( Environment.CHECK_NULLABILITY, "true" ); }
public void configure(Configuration cfg) { super.configure( cfg ); cfg.setProperty( "hibernate.event.merge.entity_copy_observer", "disallow" ); } }
@Override public void configure(Configuration cfg) { super.configure( cfg ); cfg.setProperty( Environment.STATEMENT_BATCH_SIZE, "0" ); // problem on HSQLDB (go figure) }
public void configure(Configuration cfg) { super.configure( cfg ); cfg.setProperty( "hibernate.event.merge.entity_copy_observer", "allow" ); }
@Override protected void configure(Configuration configuration) { super.configure( configuration ); configuration.setProperty( AvailableSettings.USE_SECOND_LEVEL_CACHE, "true" ); }
@Override public void configure(Configuration cfg) { super.configure( cfg ); cfg.setProperty( AvailableSettings.KEYWORD_AUTO_QUOTING_ENABLED, "true" ); }
private Configuration buildBaseConfiguration() { return new Configuration() .addResource( "org/hibernate/test/stats/Continent.hbm.xml" ) .setProperty( AvailableSettings.GENERATE_STATISTICS, "true" ); } //