db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: jakarta-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess PersistentNestedFieldMaxPerformanceImpl.java
Date Mon, 03 Feb 2003 17:19:51 GMT
thma        2003/02/03 09:19:48

  Modified:    src/java/org/apache/ojb/broker/metadata/fieldaccess
                        PersistentNestedFieldMaxPerformanceImpl.java
  Log:
  check in fix by Oliver Matz to compute the nested field name
  
  Revision  Changes    Path
  1.5       +3 -3      jakarta-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentNestedFieldMaxPerformanceImpl.java
  
  Index: PersistentNestedFieldMaxPerformanceImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/metadata/fieldaccess/PersistentNestedFieldMaxPerformanceImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PersistentNestedFieldMaxPerformanceImpl.java	24 Dec 2002 13:08:35 -0000	1.4
  +++ PersistentNestedFieldMaxPerformanceImpl.java	3 Feb 2003 17:19:48 -0000	1.5
  @@ -47,7 +47,7 @@
                   Field field = c.getDeclaredField(name);
                   Class nestedClass = field.getType();
                   //
  -                String nestedName = fieldname.substring(index + 1);
  +                String nestedName = fieldname.substring(index + PATH_TOKEN.length());
                   f = getFieldRecursive(nestedClass, nestedName);
               }
               else
  @@ -129,7 +129,7 @@
                   pField.set(obj, attrib);
               }
               //
  -            String nestedName = fieldName.substring(index + 1);
  +            String nestedName = fieldName.substring(index + PATH_TOKEN.length());
   
               setNestedObject(attrib, nestedName, value);
           }
  @@ -164,7 +164,7 @@
               if (attrib != null)
               {
                   //
  -                String nestedName = fieldName.substring(index + 1);
  +                String nestedName = fieldName.substring(index + PATH_TOKEN.length());
                   result = getNestedObject(attrib, nestedName);
               }
           }
  
  
  

Mime
View raw message