You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ar...@apache.org on 2006/03/17 12:57:57 UTC

svn commit: r386617 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/odmg/ObjectEnvelope.java

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