Java 类org.hibernate.engine.transaction.jta.platform.internal.BitronixJtaPlatform 实例源码

项目:ktspring    文件:BitronixHibernateConfig.java   
@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);
    }
项目:high-performance-java-persistence    文件:JTATransactionManagerConfiguration.java   
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;
}
项目:high-performance-java-persistence    文件:AbstractJTATransactionManagerConfiguration.java   
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;
}