当前位置: 首页>>代码示例>>Java>>正文


Java JpaTransactionManager.setEntityManagerFactory方法代码示例

本文整理汇总了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;
}
 
开发者ID:mrluo735,项目名称:cas-5.1.0,代码行数:8,代码来源:JpaEventsConfiguration.java

示例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;
}
 
开发者ID:mrluo735,项目名称:cas-5.1.0,代码行数:9,代码来源:GoogleAuthenticatorJpaConfiguration.java

示例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;
}
 
开发者ID:mrluo735,项目名称:cas-5.1.0,代码行数:9,代码来源:JdbcMultifactorAuthnTrustConfiguration.java

示例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;
}
 
开发者ID:mrluo735,项目名称:cas-5.1.0,代码行数:9,代码来源:JpaServiceRegistryConfiguration.java

示例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;
}
 
开发者ID:mrluo735,项目名称:cas-5.1.0,代码行数:9,代码来源:CasConsentJdbcConfiguration.java

示例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;
}
 
开发者ID:biblelamp,项目名称:JavaEE,代码行数:8,代码来源:AppConfig.java

示例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;
}
 
开发者ID:cerner,项目名称:jwala,代码行数:8,代码来源:AemJpaConfiguration.java

示例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;
}
 
开发者ID:Azanx,项目名称:Smart-Shopping,代码行数:8,代码来源:JPAConfig.java

示例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;
}
 
开发者ID:rumatoest,项目名称:jdblender,代码行数:8,代码来源:Config.java

示例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;
}
 
开发者ID:VHAINNOVATIONS,项目名称:BCDS,代码行数:10,代码来源:DatabaseConfiguration.java

示例12: transactionManager

import org.springframework.orm.jpa.JpaTransactionManager; //导入方法依赖的package包/类
@Bean
public PlatformTransactionManager transactionManager() {

	JpaTransactionManager txManager = new JpaTransactionManager();
	txManager.setEntityManagerFactory(entityManagerFactory().getObject());
	return txManager;
}
 
开发者ID:paulcwarren,项目名称:spring-content,代码行数:8,代码来源:EnableJpaStoresTest.java

示例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;
}
 
开发者ID:nipunthathsara,项目名称:Audit4j-Hibernate,代码行数:12,代码来源:PersistanceConfig.java

示例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;
}
 
开发者ID:sgskinner,项目名称:StashThisBot,代码行数:8,代码来源:StashThisConfiguration.java

示例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;
}
 
开发者ID:izhangzhihao,项目名称:SpringMVCWithJavaConfig,代码行数:10,代码来源:JPAConfig.java


注:本文中的org.springframework.orm.jpa.JpaTransactionManager.setEntityManagerFactory方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。