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, 18 Aug 2004 19:24:19 GMT
brj         2004/08/18 12:24:19

  Modified:    src/java/org/apache/ojb/broker/util BrokerHelper.java
  Log:
  use column- instead of attribute-name for discriminator
  
  Revision  Changes    Path
  1.64      +4 -4      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.63
  retrieving revision 1.64
  diff -u -r1.63 -r1.64
  --- BrokerHelper.java	15 Aug 2004 12:42:29 -0000	1.63
  +++ BrokerHelper.java	18 Aug 2004 19:24:19 -0000	1.64
  @@ -852,7 +852,7 @@
           {
               String discriminator = aCld.getDiscriminatorValue();
               QueryByCriteria copyQuery = QueryFactory.copyQuery(aQuery);
  -            copyQuery.getCriteria().addEqualTo(fd.getAttributeName(), discriminator);
  +            copyQuery.getCriteria().addColumnEqualTo(fd.getColumnName(), discriminator);
               result = copyQuery;
           }
           
  @@ -878,11 +878,11 @@
               
               if (concreteClasses.size() > 1)
               {
  -                copyQuery.getCriteria().addIn(fd.getAttributeName(), concreteClasses);
  +                copyQuery.getCriteria().addColumnIn(fd.getColumnName(), concreteClasses);
               }
               else
               {
  -                copyQuery.getCriteria().addEqualTo(fd.getAttributeName(), concreteClasses.get(0));
               
  +                copyQuery.getCriteria().addColumnEqualTo(fd.getColumnName(), concreteClasses.get(0));
               
               }
               
               result = copyQuery;
  
  
  

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