db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/util/sequence SequenceManagerHelper.java
Date Sat, 07 May 2005 16:22:41 GMT
arminw      2005/05/07 09:22:41

  Modified:    src/java/org/apache/ojb/broker/util/sequence Tag:
                        OJB_1_0_RELEASE SequenceManagerHelper.java
  Log:
  use convenience method
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.17.2.2  +3 -4      db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerHelper.java
  
  Index: SequenceManagerHelper.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/sequence/SequenceManagerHelper.java,v
  retrieving revision 1.17.2.1
  retrieving revision 1.17.2.2
  diff -u -r1.17.2.1 -r1.17.2.2
  --- SequenceManagerHelper.java	27 Jul 2004 00:33:11 -0000	1.17.2.1
  +++ SequenceManagerHelper.java	7 May 2005 16:22:41 -0000	1.17.2.2
  @@ -171,10 +171,9 @@
       private static ClassDescriptor findInheritanceRoot(PersistenceBroker broker, ClassDescriptor
cld)
       {
           ClassDescriptor result = cld;
  -        if(cld.getBaseClass() != null)
  +        if(cld.getSuperClassDescriptor() != null)
           {
  -            ClassDescriptor baseCld = broker.getDescriptorRepository().getDescriptorFor(cld.getBaseClass());
  -            result = findInheritanceRoot(broker, baseCld);
  +            result = findInheritanceRoot(broker, cld.getSuperClassDescriptor());
           }
           return result;
       }
  
  
  

---------------------------------------------------------------------
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