use of org.springframework.orm.jpa.JpaTransactionManager in project perry by ca-cwds.
the class PerryApplication method transactionManager.
@Bean
@Autowired
public JpaTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) {
JpaTransactionManager txManager = new JpaTransactionManager();
txManager.setEntityManagerFactory(entityManagerFactory);
return txManager;
}
use of org.springframework.orm.jpa.JpaTransactionManager in project perry by ca-cwds.
the class CMSConfiguration method tokenTransactionManager.
@Bean
@Primary
@Autowired
public PlatformTransactionManager tokenTransactionManager(DataSource dataSource) {
JpaTransactionManager transactionManager = new JpaTransactionManager();
transactionManager.setEntityManagerFactory(entityManagerFactory(dataSource).getObject());
return transactionManager;
}
use of org.springframework.orm.jpa.JpaTransactionManager in project perry by ca-cwds.
the class TokenServiceConfiguration method tokenTransactionManager.
@Bean
public PlatformTransactionManager tokenTransactionManager() {
JpaTransactionManager transactionManager = new JpaTransactionManager();
transactionManager.setEntityManagerFactory(tokenEntityManagerFactory().getObject());
return transactionManager;
}
use of org.springframework.orm.jpa.JpaTransactionManager in project hub-alert by blackducksoftware.
the class DataSourceConfig method jpaTransactionManager.
@Bean
@Primary
public JpaTransactionManager jpaTransactionManager(final DataSource dataSource) {
final JpaTransactionManager transactionManager = new JpaTransactionManager();
transactionManager.setDataSource(dataSource);
return transactionManager;
}
use of org.springframework.orm.jpa.JpaTransactionManager in project Protocol-Adapter-OSLP by OSGP.
the class ApplicationContext method transactionManager.
/**
* Method for creating the Transaction Manager.
*
* @return JpaTransactionManager
*/
@Bean
public JpaTransactionManager transactionManager() {
final JpaTransactionManager transactionManager = new JpaTransactionManager();
transactionManager.setEntityManagerFactory(this.entityManagerFactory().getObject());
return transactionManager;
}
Aggregations