db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r492882 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java
Date Fri, 05 Jan 2007 03:06:50 GMT
Author: arminw
Date: Thu Jan  4 19:06:50 2007
New Revision: 492882

URL: http://svn.apache.org/viewvc?view=rev&rev=492882
Log:
minor improvement

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java?view=diff&rev=492882&r1=492881&r2=492882
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java
Thu Jan  4 19:06:50 2007
@@ -55,7 +55,6 @@
 /**
  * Model a Statement based on Query.
  *
- * @author <a href="mailto:jbraeuchi@gmx.ch">Jakob Braeuchi</a>
  * @version $Id$
  */
 public abstract class SqlQueryStatement extends AbstractSqlStatement implements SqlStatement,
JoinSyntaxTypes
@@ -407,7 +406,7 @@
              * and then we need to take the primary key attribute of the referenced object

              * to help them out.
              */
-            ClassDescriptor cld = aTableAlias.cld.getRepository().getDescriptorFor(anOrd.getItemClass());
+            ClassDescriptor cld = anOrd.getItemClassDescriptor();
             if (cld != null)
             {
                 fld = aTableAlias.cld.getFieldDescriptorByName(cld.getPkFields()[0].getPersistentField().getName());
@@ -1451,7 +1450,7 @@
 
         if (hintClasses == null || hintClasses.isEmpty())
         {
-            return repo.getDescriptorFor(ord.getItemClass()); 
+            return ord.getItemClassDescriptor();
         }
         
         Class resultClass = (Class) hintClasses.get(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