use of org.springframework.orm.jpa.JpaTransactionManager in project cloudbreak by hortonworks.
the class DatabaseConfig method transactionManager.
@Bean
public PlatformTransactionManager transactionManager() throws SQLException {
JpaTransactionManager jpaTransactionManager = new JpaTransactionManager();
jpaTransactionManager.setEntityManagerFactory(entityManagerFactory());
jpaTransactionManager.afterPropertiesSet();
return jpaTransactionManager;
}
use of org.springframework.orm.jpa.JpaTransactionManager in project main by JohnPeng739.
the class DalHibernateConfig method transactionManager.
/**
* 创建事务管理器
*
* @return 事务管理器
*/
@Bean()
public PlatformTransactionManager transactionManager() {
JpaTransactionManager transactionManager = new JpaTransactionManager();
transactionManager.setEntityManagerFactory(entityManagerFactoryBean().getObject());
return transactionManager;
}
use of org.springframework.orm.jpa.JpaTransactionManager in project cloudbreak by hortonworks.
the class DatabaseConfig method transactionManager.
@Bean
public PlatformTransactionManager transactionManager() throws SQLException {
JpaTransactionManager jpaTransactionManager = new JpaTransactionManager();
jpaTransactionManager.setEntityManagerFactory(entityManagerFactory().getObject());
jpaTransactionManager.afterPropertiesSet();
return jpaTransactionManager;
}
use of org.springframework.orm.jpa.JpaTransactionManager in project osms by malikov-yurii.
the class SpringDB method transactionManager.
@Bean
public PlatformTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) {
JpaTransactionManager jpaTransactionManager = new JpaTransactionManager();
jpaTransactionManager.setDataSource(dataSource());
jpaTransactionManager.setEntityManagerFactory(entityManagerFactory);
return jpaTransactionManager;
}
use of org.springframework.orm.jpa.JpaTransactionManager in project gs-spring-security-3.2 by rwinch.
the class DataConfiguration method transactionManager.
@Bean
public PlatformTransactionManager transactionManager() {
JpaTransactionManager txManager = new JpaTransactionManager();
txManager.setEntityManagerFactory(entityManagerFactory().getObject());
return txManager;
}
Aggregations