db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r504261 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java
Date Tue, 06 Feb 2007 19:54:50 GMT
Author: arminw
Date: Tue Feb  6 11:54:50 2007
New Revision: 504261

URL: http://svn.apache.org/viewvc?view=rev&rev=504261
Log:
fix object refresh bug

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java?view=diff&rev=504261&r1=504260&r2=504261
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java
Tue Feb  6 11:54:50 2007
@@ -1824,13 +1824,14 @@
         Object freshInstance = getPlainDBObject(cld, oid);
 
         // update all primitive typed attributes
-        FieldDescriptor[] fields = cld.getFieldDescriptions();
+        FieldDescriptor[] fields = cld.getFieldDescriptor(true);
         FieldDescriptor fmd;
         PersistentField fld;
         for (int i = 0; i < fields.length; i++)
         {
             fmd = fields[i];
             fld = fmd.getPersistentField();
+            //System.out.println("override: " + fld.get(cachedInstance) + " --> " + fld.get(freshInstance));
             fld.set(cachedInstance, fld.get(freshInstance));
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message