@Bean public JPAParams jpaParams() { Properties p = new Properties(); // p.setProperty("hibernate.connection.handling_mode", "DELAYED_ACQUISITION_AND_RELEASE_AFTER_TRANSACTION"); p.setProperty("hibernate.current_session_context_class", "jta"); p.setProperty("hibernate.transaction.jta.platform", BitronixJtaPlatform.class.getName()); p.setProperty("hibernate.connection.autocommit", "false"); return new JPAParams(p); }
protected Properties additionalProperties() { Properties properties = new Properties(); properties.setProperty("hibernate.transaction.jta.platform", BitronixJtaPlatform.class.getName()); properties.setProperty("hibernate.dialect", hibernateDialect); properties.setProperty("hibernate.hbm2ddl.auto", "create-drop"); return properties; }