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

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

Introduction

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

Prototype

public void setJpaPropertyMap(@Nullable Map<String, ?> jpaProperties) 

Source Link

Document

Specify JPA properties as a Map, to be passed into EntityManagerFactory.createEntityManager(Map) (if any).

Usage

From source file:com.springsource.html5expense.config.ComponentConfig.java

@Bean
public PlatformTransactionManager transactionManager() {
    final JpaTransactionManager transactionManager = new JpaTransactionManager();

    transactionManager.setEntityManagerFactory(entityManagerFactory().getObject());
    Map<String, String> jpaProperties = new HashMap<String, String>();
    jpaProperties.put("transactionTimeout", "43200");
    transactionManager.setJpaPropertyMap(jpaProperties);

    return transactionManager;
}