本文整理汇总了Java中org.springframework.orm.jpa.JpaTransactionManager.setEntityManagerFactory方法的典型用法代码示例。如果您正苦于以下问题:Java JpaTransactionManager.setEntityManagerFactory方法的具体用法?Java JpaTransactionManager.setEntityManagerFactory怎么用?Java JpaTransactionManager.setEntityManagerFactory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.springframework.orm.jpa.JpaTransactionManager
的用法示例。
在下文中一共展示了JpaTransactionManager.setEntityManagerFactory方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: responseHighlighterInterceptor
import org.springframework.orm.jpa.JpaTransactionManager; //导入方法依赖的package包/类
/**
* This interceptor adds some pretty syntax highlighting in responses when a browser is detected
*/
/* @Bean(autowire = Autowire.BY_TYPE)
public IServerInterceptor responseHighlighterInterceptor() {
ResponseHighlighterInterceptor retVal = new ResponseHighlighterInterceptor();
return retVal;
}*/
/* @Bean(autowire = Autowire.BY_TYPE)
public IServerInterceptor subscriptionSecurityInterceptor() {
SubscriptionsRequireManualActivationInterceptorDstu3 retVal = new SubscriptionsRequireManualActivationInterceptorDstu3();
return retVal;
}*/
@Bean
public JpaTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) {
JpaTransactionManager retVal = new JpaTransactionManager();
retVal.setEntityManagerFactory(entityManagerFactory);
return retVal;
}
开发者ID:Discovery-Research-Network-SCCM,项目名称:FHIR-CQL-ODM-service,代码行数:22,代码来源:FhirServerTestConfigDstu3.java
示例2: transactionManagerEvents
import org.springframework.orm.jpa.JpaTransactionManager; //导入方法依赖的package包/类
@Autowired
@Bean
public PlatformTransactionManager transactionManagerEvents(@Qualifier("eventsEntityManagerFactory") final EntityManagerFactory emf) {
final JpaTransactionManager mgmr = new JpaTransactionManager();
mgmr.setEntityManagerFactory(emf);
return mgmr;
}
示例3: transactionManagerGoogleAuthenticator
import org.springframework.orm.jpa.JpaTransactionManager; //导入方法依赖的package包/类
@Autowired
@Bean
public PlatformTransactionManager transactionManagerGoogleAuthenticator(
@Qualifier("googleAuthenticatorEntityManagerFactory") final EntityManagerFactory emf) {
final JpaTransactionManager mgmr = new JpaTransactionManager();
mgmr.setEntityManagerFactory(emf);
return mgmr;
}
示例4: transactionManagerMfaAuthnTrust
import org.springframework.orm.jpa.JpaTransactionManager; //导入方法依赖的package包/类
@Autowired
@Bean
public PlatformTransactionManager transactionManagerMfaAuthnTrust(
@Qualifier("mfaTrustedAuthnEntityManagerFactory") final EntityManagerFactory emf) {
final JpaTransactionManager mgmr = new JpaTransactionManager();
mgmr.setEntityManagerFactory(emf);
return mgmr;
}
示例5: transactionManagerServiceReg
import org.springframework.orm.jpa.JpaTransactionManager; //导入方法依赖的package包/类
@Autowired
@Bean
public PlatformTransactionManager transactionManagerServiceReg(@Qualifier("serviceEntityManagerFactory")
final EntityManagerFactory emf) {
final JpaTransactionManager mgmr = new JpaTransactionManager();
mgmr.setEntityManagerFactory(emf);
return mgmr;
}
示例6: transactionManagerConsent
import org.springframework.orm.jpa.JpaTransactionManager; //导入方法依赖的package包/类
@Autowired
@Bean
public PlatformTransactionManager transactionManagerConsent(
@Qualifier("consentEntityManagerFactory") final EntityManagerFactory emf) {
final JpaTransactionManager mgmr = new JpaTransactionManager();
mgmr.setEntityManagerFactory(emf);
return mgmr;
}
示例7: transactionManager
import org.springframework.orm.jpa.JpaTransactionManager; //导入方法依赖的package包/类
@Bean(name="transactionManager")
public JpaTransactionManager transactionManager(
EntityManagerFactory entityManagerFactory) {
JpaTransactionManager jtm = new JpaTransactionManager();
jtm.setEntityManagerFactory(entityManagerFactory);
return jtm;
}
示例8: getPlatformTransactionManager
import org.springframework.orm.jpa.JpaTransactionManager; //导入方法依赖的package包/类
@Bean
public PlatformTransactionManager getPlatformTransactionManager(final EntityManagerFactory emf) {
final JpaTransactionManager transactionManager = new JpaTransactionManager();
transactionManager.setDefaultTimeout(ApplicationProperties.getAsInteger(JWALA_JTA_TRANSACTION_TIMEOUT, 30));
transactionManager.setEntityManagerFactory(emf);
return transactionManager;
}
示例9: transactionManager
import org.springframework.orm.jpa.JpaTransactionManager; //导入方法依赖的package包/类
@Bean
@Autowired
public PlatformTransactionManager transactionManager(EntityManagerFactory emf) throws NamingException {
JpaTransactionManager jpaTransaction = new JpaTransactionManager();
jpaTransaction.setEntityManagerFactory(emf);
return jpaTransaction;
}
示例10: transactionManager
import org.springframework.orm.jpa.JpaTransactionManager; //导入方法依赖的package包/类
@Bean
public PlatformTransactionManager transactionManager() {
JpaTransactionManager txManager = new JpaTransactionManager();
txManager.setDataSource(dataSourceH2());
txManager.setEntityManagerFactory(entityManagerFactory().getObject());
return txManager;
}
示例11: transactionManager
import org.springframework.orm.jpa.JpaTransactionManager; //导入方法依赖的package包/类
@Bean
@Autowired
public JpaTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) {
JpaTransactionManager txManager = new JpaTransactionManager();
JpaDialect jpaDialect = new HibernateJpaDialect();
txManager.setEntityManagerFactory(entityManagerFactory);
txManager.setJpaDialect(jpaDialect);
return txManager;
}
示例12: transactionManager
import org.springframework.orm.jpa.JpaTransactionManager; //导入方法依赖的package包/类
@Bean
public PlatformTransactionManager transactionManager() {
JpaTransactionManager txManager = new JpaTransactionManager();
txManager.setEntityManagerFactory(entityManagerFactory().getObject());
return txManager;
}
示例13: transactionManager
import org.springframework.orm.jpa.JpaTransactionManager; //导入方法依赖的package包/类
/**
* Transaction manager.
*
* @return the platform transaction manager
*/
@Bean
public PlatformTransactionManager transactionManager() {
JpaTransactionManager tm = new JpaTransactionManager();
tm.setEntityManagerFactory(this.entityManagerFactory().getObject());
return tm;
}
示例14: transactionManager
import org.springframework.orm.jpa.JpaTransactionManager; //导入方法依赖的package包/类
@Bean
@Autowired
public PlatformTransactionManager transactionManager(EntityManagerFactory emf) {
JpaTransactionManager txManager = new JpaTransactionManager();
txManager.setEntityManagerFactory(emf);
return txManager;
}
示例15: transactionManager
import org.springframework.orm.jpa.JpaTransactionManager; //导入方法依赖的package包/类
/**
* 配置 Spring 事务管理器
*/
@Bean
public PlatformTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) {
JpaTransactionManager jpaTransactionManager = new JpaTransactionManager();
jpaTransactionManager.setEntityManagerFactory(entityManagerFactory);
return jpaTransactionManager;
}