use of org.springframework.orm.jpa.JpaTransactionManager in project tutorials by eugenp.
the class H2TestProfileJPAConfig method transactionManager.
@Bean
JpaTransactionManager transactionManager(final EntityManagerFactory entityManagerFactory) {
final JpaTransactionManager transactionManager = new JpaTransactionManager();
transactionManager.setEntityManagerFactory(entityManagerFactory);
return transactionManager;
}
use of org.springframework.orm.jpa.JpaTransactionManager in project tutorials by eugenp.
the class UserConfig method userTransactionManager.
@Primary
@Bean
public PlatformTransactionManager userTransactionManager() {
final JpaTransactionManager transactionManager = new JpaTransactionManager();
transactionManager.setEntityManagerFactory(userEntityManager().getObject());
return transactionManager;
}
use of org.springframework.orm.jpa.JpaTransactionManager in project tutorials by eugenp.
the class PersistenceJPAConfig method transactionManager.
@Bean
public PlatformTransactionManager transactionManager(final EntityManagerFactory emf) {
final JpaTransactionManager transactionManager = new JpaTransactionManager();
transactionManager.setEntityManagerFactory(emf);
return transactionManager;
}
use of org.springframework.orm.jpa.JpaTransactionManager in project tutorials by eugenp.
the class StudentJPAH2Config method transactionManager.
@Bean
JpaTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) {
JpaTransactionManager transactionManager = new JpaTransactionManager();
transactionManager.setEntityManagerFactory(entityManagerFactory);
return transactionManager;
}
use of org.springframework.orm.jpa.JpaTransactionManager in project tutorials by eugenp.
the class PersistenceConfig method jpaTransactionManager.
@Bean
public PlatformTransactionManager jpaTransactionManager() {
final JpaTransactionManager transactionManager = new JpaTransactionManager();
transactionManager.setEntityManagerFactory(entityManagerFactory().getObject());
return transactionManager;
}
Aggregations