Hi,
I was just looking through the code in the generator, pulled down from
the current cvs, and found this line strange:
In org.apache.torque.engine.database.model.Table.java:
509- public void addForeignKey(ForeignKey fk)
510- {
511- fk.setTable (this);
512- foreignKeys.add(fk);
513-
514: if (foreignTableNames =3D=3D null)
515- {
516: foreignTableNames =3D new ArrayList(5);
517- }
518: if (foreignTableNames.contains(fk.getForeignTableName()))
519- {
520: foreignTableNames.add(fk.getForeignTableName());
521- }
522- }
Shouldn't line 518 be
if (!foreignTableNames.contains(fk.getForeignTableName()))
--Xinghai
This email, including any attachments and files transmitted with it, are for the sole use
of the intended recipient(s) to whom this email is addressed, and may contain confidential
and/or privileged information. Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please be advised that you have received
this email in error, and please contact the sender by reply email and destroy all copies (including
all electronic and hard copies) of the original message. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org
|