Esempio n. 1
0
 public void configure(Configuration cfg) {
   super.configure(cfg);
   cfg.setProperty(Environment.GENERATE_STATISTICS, "true");
 }
 public void configure(Configuration cfg) {
   super.configure(cfg);
   cfg.setProperty(Environment.ORDER_INSERTS, "true");
   cfg.setProperty(Environment.STATEMENT_BATCH_SIZE, "10");
   cfg.setProperty(Environment.BATCH_STRATEGY, StatsBatcherFactory.class.getName());
 }