List of usage examples for org.springframework.orm.jpa JpaTransactionManager JpaTransactionManager
public JpaTransactionManager(EntityManagerFactory emf)
From source file:com.groovycoder.digimon.DigimonConfig.java
@Bean public PlatformTransactionManager digimonTransactionManager() { return new JpaTransactionManager(digimonEntityManager().getObject()); }
From source file:br.com.proj.web.config.WebMvcConfig.java
@Bean public PlatformTransactionManager transactionManager() { System.out.println("transactionManager"); EntityManagerFactory factory = entityManagerFactory().getObject(); return new JpaTransactionManager(factory); }
From source file:pl.softech.eav.example.JpaConfig.java
@Bean(name = "transactionManager") public JpaTransactionManager transactionManager(EntityManagerFactory emf) { return new JpaTransactionManager(emf); }
From source file:at.christophwurst.orm.config.AppConfig.java
@Bean public JpaTransactionManager transactionManager() { return new JpaTransactionManager(entityManagerFactory().getObject()); }
From source file:org.ameba.samples.tenancy.TenancySampleApplication.java
public @Bean PlatformTransactionManager customTransactionManager(EntityManagerFactory entityManagerFactory) { return new JpaTransactionManager(entityManagerFactory); }
From source file:se.uu.it.cs.recsys.persistence.config.PersistenceSpringConfig.java
@Bean public JpaTransactionManager transactionManager(EntityManagerFactory emf) { return new JpaTransactionManager(emf); }
From source file:org.apigw.monitoring.config.PersistenceConfig.java
@Bean public PlatformTransactionManager transactionManager() { log.debug("Setting up transactionManager"); EntityManagerFactory factory = entityManagerFactory().getObject(); return new JpaTransactionManager(factory); }
From source file:cz.muni.fi.editor.database.test.helpers.DatabaseConfigurationTest.java
@Bean public JpaTransactionManager jpaTransactionManager() { return new JpaTransactionManager(emf.getObject()); }
From source file:org.duracloud.mill.credentials.impl.CredentialsRepoConfig.java
@Bean(name = TRANSACTION_MANAGER_BEAN) public PlatformTransactionManager credentialsRepoTransactionManager( @Qualifier(ENTITY_MANAGER_FACTORY_BEAN) EntityManagerFactory entityManagerFactory) { JpaTransactionManager tm = new JpaTransactionManager(entityManagerFactory); tm.setJpaDialect(new HibernateJpaDialect()); return tm;/*from w w w . j a v a 2 s .c om*/ }
From source file:br.com.devmedia.cleancode.spring.ConfiguracaoBancoDados.java
@Bean public PlatformTransactionManager transactionManager() { return new JpaTransactionManager(entityManagerFactory); }