/** * Create a new JpaTransactionManager instance. * @param emf the EntityManagerFactory to manage transactions for */ public JpaTransactionManager(EntityManagerFactory emf) { this(); this.entityManagerFactory = emf; afterPropertiesSet(); }
/** * Create a new JpaTransactionManager instance. * @param emf the EntityManagerFactory to manage transactions for */ public JpaTransactionManager(EntityManagerFactory emf) { this(); this.entityManagerFactory = emf; afterPropertiesSet(); }
/** * Create a new JpaTransactionManager instance. * @param emf the EntityManagerFactory to manage transactions for */ public JpaTransactionManager(EntityManagerFactory emf) { this(); this.entityManagerFactory = emf; afterPropertiesSet(); }
EntityManagerFactory entityManagerFactory = fBean.getObject(); JpaTransactionManager txMgr = new JpaTransactionManager(); txMgr.setEntityManagerFactory(entityManagerFactory); txMgr.afterPropertiesSet(); jpa.setEntityManagerFactory(entityManagerFactory); jpa.setTransactionManager(txMgr);
protected PlatformTransactionManager createTransactionManager() { JpaTransactionManager tm = new JpaTransactionManager(getEntityManagerFactory()); tm.afterPropertiesSet(); return tm; }
@Bean public PlatformTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) { JpaTransactionManager tm = new JpaTransactionManager(); tm.setEntityManagerFactory(entityManagerFactory); tm.afterPropertiesSet(); return tm; }
tm.setJpaDialect( jpaDialect ); _log.debug( "> JpaDialect " + jpaDialect ); tm.afterPropertiesSet( ); _log.info( "JPA Startup Service : JPA TransactionManager created for pool : " + strPoolname ); _log.debug( "> TM : " + tm.toString( ) );