db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject cvs commit: db-torque/src/generator/src/java/org/apache/torque/engine/database/model Table.java
Date Wed, 31 Mar 2004 14:34:33 GMT
seade       2004/03/31 06:34:33

  Modified:    src/generator/src/java/org/apache/torque/engine/database/model
                        Table.java
  Log:
  Stop duplicate foreign key table names from being included in the foreign key table list.
  Not noted in change history as the foreign key table list is not currently used.
  Patch thanks to Xinghai Chen.
  
  Revision  Changes    Path
  1.7       +2 -2      db-torque/src/generator/src/java/org/apache/torque/engine/database/model/Table.java
  
  Index: Table.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/java/org/apache/torque/engine/database/model/Table.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Table.java	22 Feb 2004 06:27:19 -0000	1.6
  +++ Table.java	31 Mar 2004 14:34:33 -0000	1.7
  @@ -477,7 +477,7 @@
           {
               foreignTableNames = new ArrayList(5);
           }
  -        if (foreignTableNames.contains(fk.getForeignTableName()))
  +        if (!foreignTableNames.contains(fk.getForeignTableName()))
           {
               foreignTableNames.add(fk.getForeignTableName());
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message