arminw      2005/05/07 09:20:59

  Modified:    src/java/org/apache/ojb/odmg Tag: OJB_1_0_RELEASE
                        ObjectEnvelope.java
  Log:
  fix OJB-38
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.32.2.13 +8 -1      db-ojb/src/java/org/apache/ojb/odmg/ObjectEnvelope.java
  
  Index: ObjectEnvelope.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/ObjectEnvelope.java,v
  retrieving revision 1.32.2.12
  retrieving revision 1.32.2.13
  diff -u -r1.32.2.12 -r1.32.2.13
  --- ObjectEnvelope.java       3 May 2005 17:09:04 -0000       1.32.2.12
  +++ ObjectEnvelope.java       7 May 2005 16:20:59 -0000       1.32.2.13
  @@ -704,7 +704,14 @@
                   }
                   else
                   {
  -                    
mod.setModificationState(mod.getModificationState().markDirty());
  +                    /*
  +                    arminw: if the reference is a m:n relation and the 
object state is
  +                    old clean, no need to update the reference.
  +                    */
  +                    if(!(cds.isMtoNRelation() && 
mod.getModificationState().equals(StateOldClean.getInstance())))
  +                    {
  +                        
mod.setModificationState(mod.getModificationState().markDirty());
  +                    }
                   }
                   // buffer this object as "new" in a list to prevent deletion
                   // when object was moved from one collection to another
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to