db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattba...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/core PersistenceBrokerImpl.java
Date Tue, 01 Jul 2003 04:41:20 GMT
mattbaird    2003/06/30 21:41:19

  Modified:    src/java/org/apache/ojb/broker/core
                        PersistenceBrokerImpl.java
  Log:
  Fixed a problem where selecting a projection attribute that is an object didn't return the
proper thing.
  PR:
  Obtained from: Matthew Baird
  Submitted by:	Matthew Baird
  Reviewed by:	Matthew Baird
  
  Revision  Changes    Path
  1.20      +9 -1      db-ojb/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java
  
  Index: PersistenceBrokerImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/core/PersistenceBrokerImpl.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- PersistenceBrokerImpl.java	1 Jul 2003 00:37:43 -0000	1.19
  +++ PersistenceBrokerImpl.java	1 Jul 2003 04:41:19 -0000	1.20
  @@ -1371,6 +1371,14 @@
                           result.ojbAdd(candidate);
                           retrievedCount++;
                       }
  +                    else if (query instanceof QueryByCriteria)
  +                    {
  +	                    if (((QueryByCriteria)query).getProjectionAttributeClass().isAssignableFrom(candidate.getClass()))
  +	                    {
  +		                    result.ojbAdd(candidate);
  +		                    retrievedCount++;
  +	                    }
  +                    }
                       else
                       {
                           //warn the user
  
  
  

Mime
View raw message