db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From olegn...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/otm/core ConcreteEditingContext.java
Date Mon, 05 Jan 2004 01:40:00 GMT
olegnitz    2004/01/04 17:40:00

  Modified:    src/java/org/apache/ojb/otm/core ConcreteEditingContext.java
  Log:
  Fixed bug: deletion of proxy objects didn't work
  
  Revision  Changes    Path
  1.32      +2 -1      db-ojb/src/java/org/apache/ojb/otm/core/ConcreteEditingContext.java
  
  Index: ConcreteEditingContext.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/otm/core/ConcreteEditingContext.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- ConcreteEditingContext.java	29 Oct 2003 07:58:32 -0000	1.31
  +++ ConcreteEditingContext.java	5 Jan 2004 01:40:00 -0000	1.32
  @@ -91,6 +91,7 @@
   import org.apache.ojb.broker.metadata.ObjectReferenceDescriptor;
   import org.apache.ojb.broker.metadata.fieldaccess.PersistentField;
   import org.apache.ojb.broker.util.ArrayIterator;
  +import org.apache.ojb.broker.util.ProxyHelper;
   import org.apache.ojb.otm.EditingContext;
   import org.apache.ojb.otm.OTMKit;
   import org.apache.ojb.otm.copy.ObjectCopyStrategy;
  @@ -1371,7 +1372,7 @@
        */
       private int doCascadeDelete(Object obj)
       {
  -        ClassDescriptor mif = _pb.getClassDescriptor(obj.getClass());
  +        ClassDescriptor mif = _pb.getClassDescriptor(ProxyHelper.getRealClass(obj));
           Collection refDescs = mif.getObjectReferenceDescriptors();
           Collection colDescs = mif.getCollectionDescriptors();
           int countCascadeDeleted = 0;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message