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

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:FlywayAutoConfigurationTests.java   
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactoryBean() {
    Map<String, Object> properties = new HashMap<String, Object>();
    properties.put("configured", "manually");
    properties.put("hibernate.transaction.jta.platform", NoJtaPlatform.INSTANCE);
    return new EntityManagerFactoryBuilder(new HibernateJpaVendorAdapter(),
            properties, null).dataSource(this.dataSource).build();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:AbstractJpaAutoConfigurationTests.java   
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactory(
        DataSource dataSource, JpaVendorAdapter adapter) {
    LocalContainerEntityManagerFactoryBean factoryBean = new LocalContainerEntityManagerFactoryBean();
    factoryBean.setJpaVendorAdapter(adapter);
    factoryBean.setDataSource(dataSource);
    factoryBean.setPersistenceUnitName("manually-configured");
    Map<String, Object> properties = new HashMap<String, Object>();
    properties.put("configured", "manually");
    properties.put("hibernate.transaction.jta.platform", NoJtaPlatform.INSTANCE);
    factoryBean.setJpaPropertyMap(properties);
    return factoryBean;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:AbstractJpaAutoConfigurationTests.java   
@Bean
public EntityManagerFactory entityManagerFactory(DataSource dataSource,
        JpaVendorAdapter adapter) {
    LocalContainerEntityManagerFactoryBean factoryBean = new LocalContainerEntityManagerFactoryBean();
    factoryBean.setJpaVendorAdapter(adapter);
    factoryBean.setDataSource(dataSource);
    factoryBean.setPersistenceUnitName("manually-configured");
    Map<String, Object> properties = new HashMap<String, Object>();
    properties.put("configured", "manually");
    properties.put("hibernate.transaction.jta.platform", NoJtaPlatform.INSTANCE);
    factoryBean.setJpaPropertyMap(properties);
    factoryBean.afterPropertiesSet();
    return factoryBean.getObject();
}
项目:spring-boot-concourse    文件:FlywayAutoConfigurationTests.java   
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactoryBean() {
    Map<String, Object> properties = new HashMap<String, Object>();
    properties.put("configured", "manually");
    properties.put("hibernate.transaction.jta.platform", NoJtaPlatform.INSTANCE);
    return new EntityManagerFactoryBuilder(new HibernateJpaVendorAdapter(),
            properties, null).dataSource(this.dataSource).build();
}
项目:spring-boot-concourse    文件:AbstractJpaAutoConfigurationTests.java   
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactory(
        DataSource dataSource, JpaVendorAdapter adapter) {
    LocalContainerEntityManagerFactoryBean factoryBean = new LocalContainerEntityManagerFactoryBean();
    factoryBean.setJpaVendorAdapter(adapter);
    factoryBean.setDataSource(dataSource);
    factoryBean.setPersistenceUnitName("manually-configured");
    Map<String, Object> properties = new HashMap<String, Object>();
    properties.put("configured", "manually");
    properties.put("hibernate.transaction.jta.platform", NoJtaPlatform.INSTANCE);
    factoryBean.setJpaPropertyMap(properties);
    return factoryBean;
}
项目:spring-boot-concourse    文件:AbstractJpaAutoConfigurationTests.java   
@Bean
public EntityManagerFactory entityManagerFactory(DataSource dataSource,
        JpaVendorAdapter adapter) {
    LocalContainerEntityManagerFactoryBean factoryBean = new LocalContainerEntityManagerFactoryBean();
    factoryBean.setJpaVendorAdapter(adapter);
    factoryBean.setDataSource(dataSource);
    factoryBean.setPersistenceUnitName("manually-configured");
    Map<String, Object> properties = new HashMap<String, Object>();
    properties.put("configured", "manually");
    properties.put("hibernate.transaction.jta.platform", NoJtaPlatform.INSTANCE);
    factoryBean.setJpaPropertyMap(properties);
    factoryBean.afterPropertiesSet();
    return factoryBean.getObject();
}
项目:contestparser    文件:FlywayAutoConfigurationTests.java   
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactoryBean() {
    Map<String, Object> properties = new HashMap<String, Object>();
    properties.put("configured", "manually");
    properties.put("hibernate.transaction.jta.platform", NoJtaPlatform.INSTANCE);
    return new EntityManagerFactoryBuilder(new HibernateJpaVendorAdapter(),
            properties, null).dataSource(this.dataSource).build();
}
项目:contestparser    文件:AbstractJpaAutoConfigurationTests.java   
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactory(
        DataSource dataSource, JpaVendorAdapter adapter) {
    LocalContainerEntityManagerFactoryBean factoryBean = new LocalContainerEntityManagerFactoryBean();
    factoryBean.setJpaVendorAdapter(adapter);
    factoryBean.setDataSource(dataSource);
    factoryBean.setPersistenceUnitName("manually-configured");
    Map<String, Object> properties = new HashMap<String, Object>();
    properties.put("configured", "manually");
    properties.put("hibernate.transaction.jta.platform", NoJtaPlatform.INSTANCE);
    factoryBean.setJpaPropertyMap(properties);
    return factoryBean;
}
项目:contestparser    文件:AbstractJpaAutoConfigurationTests.java   
@Bean
public EntityManagerFactory entityManagerFactory(DataSource dataSource,
        JpaVendorAdapter adapter) {
    LocalContainerEntityManagerFactoryBean factoryBean = new LocalContainerEntityManagerFactoryBean();
    factoryBean.setJpaVendorAdapter(adapter);
    factoryBean.setDataSource(dataSource);
    factoryBean.setPersistenceUnitName("manually-configured");
    Map<String, Object> properties = new HashMap<String, Object>();
    properties.put("configured", "manually");
    properties.put("hibernate.transaction.jta.platform", NoJtaPlatform.INSTANCE);
    factoryBean.setJpaPropertyMap(properties);
    factoryBean.afterPropertiesSet();
    return factoryBean.getObject();
}