seade       2004/03/31 06:34:01

  Modified:    src/generator/src/java/org/apache/torque/engine/database/model
                        Tag: TORQUE_3_1_BRANCH 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
  No                   revision
  No                   revision
  1.3.2.2   +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.3.2.1
  retrieving revision 1.3.2.2
  diff -u -r1.3.2.1 -r1.3.2.2
  --- Table.java        29 Feb 2004 23:03:54 -0000      1.3.2.1
  +++ Table.java        31 Mar 2004 14:34:01 -0000      1.3.2.2
  @@ -479,7 +479,7 @@
           {
               foreignTableNames = new ArrayList(5);
           }
  -        if (foreignTableNames.contains(fk.getForeignTableName()))
  +        if (!foreignTableNames.contains(fk.getForeignTableName()))
           {
               foreignTableNames.add(fk.getForeignTableName());
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to