db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/odmg ObjectEnvelope.java
Date Thu, 01 May 2003 15:53:10 GMT
thma        2003/05/01 08:53:10

  Modified:    src/java/org/apache/ojb/odmg ObjectEnvelope.java
  Log:
  Fix OJB152. I completely removed the check for CollectionProxy instances.
  The size() method, used as dirty mark works without problems.
  
  Revision  Changes    Path
  1.20      +2 -7      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.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- ObjectEnvelope.java	28 Apr 2003 17:10:41 -0000	1.19
  +++ ObjectEnvelope.java	1 May 2003 15:53:10 -0000	1.20
  @@ -318,13 +318,8 @@
                   // items might be a Collection or an array.
                   if (items instanceof Collection)
                   {
  -                    /*
  -                     * if items are a collectionproxy, and it's not already loaded, don't
register it.
  -                     */
  -                    if (!( items instanceof CollectionProxy) || ( (CollectionProxy) items).isLoaded())
  -                    {
  -                            continue;
  -                    }
  +					// no special treatment for CollectionProxies required,
  +					// their size() method does not materialize the elements.
                       /**
                        * MBAIRD
                        * size isn't the safest thing to use as the dirty bit. This will
  
  
  

Mime
View raw message