If you are using newid because of your own need to create a unique id, I can think of two approaches:
1) Change how Torque creates it's own identities and use that to populate the column. 2) Remove the column from the schema.xml that you use to create the objects. Then torque won't know about the column and you are free to do whatever you need to do in that column. Eric Pugh -----Original Message----- From: Adam Greene [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 2:44 PM To: Torque Subject: New field for XML Schema The following may already be possible, but I might not be aware of it, but here it is and I would appreciate any feedback: Can we define a new field called "Stored" for the XML Schema. The reason I say this is this: I am using uniqueidentifier fields in MS-SQL, with a default value of newid(), the problem comes in that Torque tries to store a NULL in this field and nulls are not allowed, and in fact no value should ever be stored in this field. To fix this problem I modified the "*MapBuilder" class, method doBuild(), and removed this line: tMap.addColumn("table.UNIQUELY", new Object(0)); So that it didn't try to save it, and could load it OK. Adam Greene ROMulin Group Inc 885 Main St, Suite 16 Moncton, NB E1C 1G5 Ph: (506) 863-1014 x4 Fx: (506) 854-6886 http://www.romulin.com/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
