db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: jakarta-ojb/src/java/org/apache/ojb/broker/singlevm PersistenceBrokerImpl.java
Date Tue, 17 Dec 2002 19:27:50 GMT
brj         2002/12/17 11:27:50

  Modified:    src/java/org/apache/ojb/broker/singlevm
                        PersistenceBrokerImpl.java
  Log:
  moved call to ProxyHelper int storeMtoNImplementors
  
  Revision  Changes    Path
  1.92      +3 -2      jakarta-ojb/src/java/org/apache/ojb/broker/singlevm/PersistenceBrokerImpl.java
  
  Index: PersistenceBrokerImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/singlevm/PersistenceBrokerImpl.java,v
  retrieving revision 1.91
  retrieving revision 1.92
  diff -u -r1.91 -r1.92
  --- PersistenceBrokerImpl.java	17 Dec 2002 19:01:06 -0000	1.91
  +++ PersistenceBrokerImpl.java	17 Dec 2002 19:27:49 -0000	1.92
  @@ -763,7 +763,7 @@
                   }
                   while (colIterator.hasNext())
                   {
  -                    Object otherObj = ProxyHelper.getRealObject(colIterator.next());  
       
  +                    Object otherObj = colIterator.next();          
                       
                       // for m:n mapped collections store association implementing entries
                       if (cds.isMtoNRelation())
  @@ -807,6 +807,7 @@
        */
       private void storeMtoNImplementor(CollectionDescriptor cod, Object obj, Object otherObj,
Collection mnKeys)
       {
  +        otherObj = ProxyHelper.getRealObject(otherObj);       
           ClassDescriptor cld = getDescriptorRepository().getDescriptorFor(obj.getClass());
           Object[] pkValues = cld.getKeyValues(obj);      
           Object[] pkColumns = cod.getFksToThisClass();
  
  
  

Mime
View raw message