db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/util BrokerHelper.java
Date Wed, 21 Apr 2004 17:02:59 GMT
brj         2004/04/21 10:02:59

  Modified:    src/java/org/apache/ojb/broker/util BrokerHelper.java
  Log:
  use a copied criteria without orderBy etc. to build the count-query
  
  Revision  Changes    Path
  1.48      +3 -2      db-ojb/src/java/org/apache/ojb/broker/util/BrokerHelper.java
  
  Index: BrokerHelper.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/BrokerHelper.java,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- BrokerHelper.java	12 Apr 2004 16:32:40 -0000	1.47
  +++ BrokerHelper.java	21 Apr 2004 17:02:59 -0000	1.48
  @@ -505,7 +505,8 @@
       {
           Class searchClass = aQuery.getSearchClass();
           ReportQueryByCriteria countQuery;
  -        Criteria countCrit = aQuery.getCriteria();
  +        // BRJ: copied Criteria without groupby, orderby, and prefetched relationships
  +        Criteria countCrit = aQuery.getCriteria().copy(false,false,false);
           String[] columns = new String[1];
   
           if(aQuery.isDistinct())
  
  
  

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