List of usage examples for org.springframework.orm.jpa JpaTransactionManager setJpaPropertyMap
public void setJpaPropertyMap(@Nullable Map<String, ?> jpaProperties)
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; }