本文整理匯總了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;
}