You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2021/02/01 14:27:23 UTC

[isis] branch master updated: ISIS-2515: polish example 4

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new 8e7deb6  ISIS-2515: polish example 4
8e7deb6 is described below

commit 8e7deb65608d3570735f3a5d29a2c91fb39c28ed
Author: Andi Huber <ah...@apache.org>
AuthorDate: Mon Feb 1 15:27:13 2021 +0100

    ISIS-2515: polish example 4
---
 persistence/jdo/spring/README.adoc | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/persistence/jdo/spring/README.adoc b/persistence/jdo/spring/README.adoc
index 370ecc8..cf474df 100644
--- a/persistence/jdo/spring/README.adoc
+++ b/persistence/jdo/spring/README.adoc
@@ -355,11 +355,11 @@ transactions through turning off `TransactionAwarePersistenceManagerFactoryProxy
 @Configuration
 @Import({
 })
-public class ConfigurationExample3 {
+public class ConfigurationExample {
     
     @Bean(destroyMethod = "close")
     public DataSource getDataSource() {
-        val dataSourceBuilder = DataSourceBuilder.create().type(BasicDataSource.class);
+        var dataSourceBuilder = DataSourceBuilder.create().type(BasicDataSource.class);
         dataSourceBuilder.driverClassName("org.h2.Driver");
         dataSourceBuilder.url("jdbc:h2:mem:test");
         dataSourceBuilder.username("sa");
@@ -368,16 +368,16 @@ public class ConfigurationExample3 {
     }
   
     @Bean(destroyMethod = "close") @Named("myPmf")
-    public PersistenceManagerFactory myPmf(final DataSource dataSource) {
-        val myPmf = new JDOPersistenceManagerFactory();
+    public PersistenceManagerFactory myPmf(DataSource dataSource) {
+        var myPmf = new JDOPersistenceManagerFactory();
         myPmf.setConnectionFactory(dataSource);
         myPmf.setNontransactionalRead(true);
         return myPmf;
     }
     
     @Bean @Named("myPmfProxy")
-    public TransactionAwarePersistenceManagerFactoryProxy myPmfProxy(final PersistenceManagerFactory myPmf) {
-        val myPmfProxy = new TransactionAwarePersistenceManagerFactoryProxy();
+    public TransactionAwarePersistenceManagerFactoryProxy myPmfProxy(PersistenceManagerFactory myPmf) {
+        var myPmfProxy = new TransactionAwarePersistenceManagerFactoryProxy();
         myPmfProxy.setTargetPersistenceManagerFactory(myPmf);
         myPmfProxy.setAllowCreate(false); // <.>
         return myPmfProxy;