use of org.springframework.orm.jpa.JpaTransactionManager in project tutorials by eugenp.
the class PersistenceJPAConfigL2Cache 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 ProductConfig method productTransactionManager.
@Bean
public PlatformTransactionManager productTransactionManager() {
final JpaTransactionManager transactionManager = new JpaTransactionManager();
transactionManager.setEntityManagerFactory(productEntityManager().getObject());
return transactionManager;
}
use of org.springframework.orm.jpa.JpaTransactionManager in project tutorials by eugenp.
the class StudentJpaConfig 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 H2JpaConfig 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 PersistenceConfig method transactionManager.
@Bean
public PlatformTransactionManager transactionManager(final EntityManagerFactory emf) {
final JpaTransactionManager transactionManager = new JpaTransactionManager();
transactionManager.setEntityManagerFactory(emf);
return transactionManager;
}
Aggregations