You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ar...@apache.org on 2004/11/27 03:10:27 UTC

cvs commit: db-ojb/src/java/org/apache/ojb/broker/metadata DescriptorRepository.java

arminw      2004/11/26 18:10:27

  Modified:    src/java/org/apache/ojb/broker/metadata Tag: OJB_1_0_RELEASE
                        DescriptorRepository.java
  Log:
  minor change requested by user
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.50.2.3  +6 -3      db-ojb/src/java/org/apache/ojb/broker/metadata/DescriptorRepository.java
  
  Index: DescriptorRepository.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/DescriptorRepository.java,v
  retrieving revision 1.50.2.2
  retrieving revision 1.50.2.3
  diff -u -r1.50.2.2 -r1.50.2.3
  --- DescriptorRepository.java	4 Aug 2004 00:31:51 -0000	1.50.2.2
  +++ DescriptorRepository.java	27 Nov 2004 02:10:27 -0000	1.50.2.3
  @@ -168,8 +168,11 @@
                   else
                   {
                       // check if class is persistence capable
  -                    getDescriptorFor(clazz);
  -                    retval = clazz;
  +                    // +
  +                    // Adam Jenkins: use the class that is associated
  +                    // with the descriptor instead of the actual class
  +                    ClassDescriptor temp = getDescriptorFor(clazz);
  +                    retval = temp.getClassOfObject();
                   }
                   m_topLevelClassTable.put(clazz, retval);
               }
  
  
  

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