Chris Huisman wrote: > If I change the table definition to be: > idMethod="none"> > type="VARCHAR" size="50"/> > type="INTEGER"/> onDelete="cascade"> > > >
> I am able to add as many "ALTERNATE_NAME" rows as I want, but I cannot > udate the ALTERNATE_NAME.alternate_name column. > How should I go about doing this? Are you allowed to update primary > keys using torque and MySQL?? If you don't want IDBroker to generate ids for you then set it to "none" (or "native" if you want the DBMS to generate them). You won't be able to use Torque to update your alternate_name column because by changing it you are altering the only value available to Torque to use as a selection criteria for the update. What you are attempting to do is widely accepted as bad design since you cannot change the primary key of your table without also changing the value that might be stored in any related tables. Google "surrogate keys" for the relevant background information - I know Scott Ambler has written some decent material about this. By adding an ALTERNATE_NAME_ID column to your table you should find everything works out fine. HTH, Scott -- Scott Eade Backstage Technologies Pty. Ltd. http://www.backstagetech.com.au --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org