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/accesslayer MtoNCollectionPrefetcher.java
Date Sat, 04 Dec 2004 10:00:15 GMT
brj         2004/12/04 02:00:15

  Modified:    src/java/org/apache/ojb/broker/accesslayer
                        MtoNCollectionPrefetcher.java
  Log:
  bug fix (by Vladimir Kirichenko)
  
  Revision  Changes    Path
  1.16      +2 -2      db-ojb/src/java/org/apache/ojb/broker/accesslayer/MtoNCollectionPrefetcher.java
  
  Index: MtoNCollectionPrefetcher.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/MtoNCollectionPrefetcher.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- MtoNCollectionPrefetcher.java	20 Oct 2004 18:50:46 -0000	1.15
  +++ MtoNCollectionPrefetcher.java	4 Dec 2004 10:00:15 -0000	1.16
  @@ -256,7 +256,7 @@
       private Criteria buildPrefetchCriteria(Collection ids, String[] fkCols, String[] itemFkCols,
               FieldDescriptor[] itemPkFields)
       {
  -        if (fkCols.length == 1)
  +        if (fkCols.length == 1 && itemFkCols.length == 1)
           {
               return buildPrefetchCriteriaSingleKey(ids, fkCols[0], itemFkCols[0], itemPkFields[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