empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r693056 - /incubator/empire-db/trunk/struts2-ext/Empire-struts2-ext/src/org/apache/empire/struts2/actionsupport/RecordActionSupport.java
Date Mon, 08 Sep 2008 11:37:46 GMT
Author: doebele
Date: Mon Sep  8 04:37:44 2008
New Revision: 693056

URL: http://svn.apache.org/viewvc?rev=693056&view=rev
Log:
EMPIREDB-12

Modified:
    incubator/empire-db/trunk/struts2-ext/Empire-struts2-ext/src/org/apache/empire/struts2/actionsupport/RecordActionSupport.java

Modified: incubator/empire-db/trunk/struts2-ext/Empire-struts2-ext/src/org/apache/empire/struts2/actionsupport/RecordActionSupport.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/struts2-ext/Empire-struts2-ext/src/org/apache/empire/struts2/actionsupport/RecordActionSupport.java?rev=693056&r1=693055&r2=693056&view=diff
==============================================================================
--- incubator/empire-db/trunk/struts2-ext/Empire-struts2-ext/src/org/apache/empire/struts2/actionsupport/RecordActionSupport.java
(original)
+++ incubator/empire-db/trunk/struts2-ext/Empire-struts2-ext/src/org/apache/empire/struts2/actionsupport/RecordActionSupport.java
Mon Sep  8 04:37:44 2008
@@ -250,7 +250,10 @@
             {   // get record object from session
                 Record rec = getRecordFromSession();
                 if (rec!=null && (rec instanceof DBRecord))
-                {   // Record restored
+                {   // Check rowset
+                    if (((DBRecord)rec).getRowSet()!=rowset)
+                        return error(Errors.ObjectNotValid, "record");
+                    // Record restored
                     this.record = (DBRecord)rec;
                     return success();
                 }
@@ -259,7 +262,7 @@
             }
             // Other
             default:
-                return error(Errors.NotSupported, "");
+                return error(Errors.NotSupported, "reloadRecord[] " + String.valueOf(persistence));
         }
     }
     



Mime
View raw message