Example usage for org.springframework.orm.jpa JpaTransactionManager JpaTransactionManager

List of usage examples for org.springframework.orm.jpa JpaTransactionManager JpaTransactionManager

Introduction

In this page you can find the example usage for org.springframework.orm.jpa JpaTransactionManager JpaTransactionManager.

Prototype

public JpaTransactionManager(EntityManagerFactory emf) 

Source Link

Document

Create a new JpaTransactionManager instance.

Usage

From source file:br.edu.ifpb.blogsoon.webapp.config.JpaConfig.java

@Bean
@Qualifier(value = "jpaTransactionManager")
public JpaTransactionManager transactionManager(EntityManagerFactory emf) {
    return new JpaTransactionManager(emf);
}

From source file:com.kerjapraktek.dataalumni.SpringConfiguration.java

@Bean
public JpaTransactionManager transactionManager(DataSource dataSource,
        EntityManagerFactory entityManagerFactory) {
    JpaTransactionManager transactionManager = new JpaTransactionManager(entityManagerFactory);
    transactionManager.setDataSource(dataSource);
    return transactionManager;
}

From source file:org.lightadmin.core.config.context.LightAdminDataConfiguration.java

@Override
@Bean(name = "transactionManager")
public PlatformTransactionManager annotationDrivenTransactionManager() {
    return new JpaTransactionManager(entityManagerFactory);
}

From source file:spring.jpa.config.DbServiceConfig.java

@Bean
public PlatformTransactionManager transactionManager(EntityManagerFactory em) {
    return new JpaTransactionManager(em);
}

From source file:com.googlecode.jeeunit.example.spring.web.ServiceSpringConfig.java

@Bean
public PlatformTransactionManager transactionManager() {
    return new JpaTransactionManager(entityManagerFactory());
}

From source file:cz.swi2.mendeluis.dataaccesslayer.core.DatabaseConfig.java

@Bean
public JpaTransactionManager transactionManager() {
    BasicConfigurator.configure();
    return new JpaTransactionManager(entityManagerFactory().getObject());
}

From source file:com.chortitzer.web.bas.RepositoryConfig_bas.java

@Bean
PlatformTransactionManager basTransactionManager(EntityManagerFactoryBuilder factory) {
    return new JpaTransactionManager(basEntityManagerFactory(factory).getObject());
}

From source file:com.chortitzer.web.fps.RepositoryConfig_fps.java

@Bean
PlatformTransactionManager fpsTransactionManager(EntityManagerFactoryBuilder factory) {
    return new JpaTransactionManager(fpsEntityManagerFactory(factory).getObject());
}

From source file:com.chortitzer.web.usi.RepositoryConfig_usi.java

@Bean
PlatformTransactionManager usiTransactionManager(EntityManagerFactoryBuilder factory) {
    return new JpaTransactionManager(usiEntityManagerFactory(factory).getObject());
}

From source file:com.chortitzer.web.admin.RepositoryConfig_admin.java

@Bean
@Primary
PlatformTransactionManager adminTransactionManager(EntityManagerFactoryBuilder factory) {
    return new JpaTransactionManager(adminEntityManagerFactory(factory).getObject());
}