db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r386617 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/ObjectEnvelope.java
Date Fri, 17 Mar 2006 11:57:57 GMT
Author: arminw
Date: Fri Mar 17 03:57:56 2006
New Revision: 386617

URL: http://svn.apache.org/viewcvs?rev=386617&view=rev
Log:
fix OJB-103

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/ObjectEnvelope.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/ObjectEnvelope.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/ObjectEnvelope.java?rev=386617&r1=386616&r2=386617&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/ObjectEnvelope.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/ObjectEnvelope.java Fri Mar
17 03:57:56 2006
@@ -153,6 +153,8 @@
         if(reuse)
         {
             refreshObjectImage(wasInsert);
+            // on reuse of this object, we have to clear the link list
+            if(linkEntryList.size() > 0) linkEntryList.clear();
         }
         else
         {
@@ -221,6 +223,7 @@
         }
     }
 
+// TODO: Is it possible that PK fields change? If a FK is part of a coumpound PK wouldn't
it possible?
 //    private void refreshPKFields()
 //    {
 //        FieldDescriptor[] flds = getClassDescriptor().getPkFields();



---------------------------------------------------------------------
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