Well, the secod thing I can answer 2- The field we just copied (cif) is then set to zero..
First, the torque generetor copy all the items in the new Object... but, I suppose that the "cif" is the primary key, so, we can?t have two objects whith the same primary key. The torque generator put zero in all primary keys that the class has. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, March 02, 2003 11:28 AM To: [EMAIL PROTECTED] Subject: Torque generation question... Hi, Can anybody explain the following code generation in Torque: protected TjdtLicitante copyInto(TjdtLicitante copyObj) throws TorqueException { copyObj.setCif(cif); copyObj.setNew(false); copyObj.setNew(true); copyObj.setCif(0); return copyObj; } 1- First it sets setNew to false and then to new, 2- The field we just copied (cif) is then set to zero.. Is there any explanation for this? Cheers, Bo --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
