isis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ke...@apache.org
Subject svn commit: r1198368 - /incubator/isis/trunk/framework/viewer/html/src/main/java/org/apache/isis/viewer/html/task/EditTask.java
Date Sun, 06 Nov 2011 13:44:55 GMT
Author: kevin
Date: Sun Nov  6 13:44:54 2011
New Revision: 1198368

URL: http://svn.apache.org/viewvc?rev=1198368&view=rev
Log:
ISIS-129: Wrapping EditTask#saveState(...) with startTransaction / endTransation

Modified:
    incubator/isis/trunk/framework/viewer/html/src/main/java/org/apache/isis/viewer/html/task/EditTask.java

Modified: incubator/isis/trunk/framework/viewer/html/src/main/java/org/apache/isis/viewer/html/task/EditTask.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/viewer/html/src/main/java/org/apache/isis/viewer/html/task/EditTask.java?rev=1198368&r1=1198367&r2=1198368&view=diff
==============================================================================
--- incubator/isis/trunk/framework/viewer/html/src/main/java/org/apache/isis/viewer/html/task/EditTask.java
(original)
+++ incubator/isis/trunk/framework/viewer/html/src/main/java/org/apache/isis/viewer/html/task/EditTask.java
Sun Nov  6 13:44:54 2011
@@ -163,6 +163,7 @@ public class EditTask extends Task {
     }
 
     private void saveState(final ObjectAdapter targetAdapter, final ObjectAdapter[] entryAdapters)
{
+        getPersistenceSession().getTransactionManager().startTransaction();
         for (int i = 0; i < fields.length; i++) {
             final ObjectAssociation fld = fields[i];
             final ObjectAdapter entryAdapter = entryAdapters[i];
@@ -188,6 +189,7 @@ public class EditTask extends Task {
                 }
             }
         }
+        getPersistenceSession().getTransactionManager().endTransaction();
     }
 
     @Override



Mime
View raw message