db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carr, Eric (Contractor)" <EC...@usmint.treas.gov>
Subject torque feedback
Date Fri, 13 Dec 2002 13:32:46 GMT
Hello all, 

We are using torque with MS Sql Server 2000.  We ran the release version of
torque 3.0 using a schema that we were using successfully with the b4 of the
product.  When compiling the resulting code, we got errors  We were able to
track the errors down to the following:

- when using a byte for a primary key, the objects.vm file had an extra ) in
it, giving a compilation error.
- When using a short or byte as a foreign key, a set is generated for the
ability to set the value based on an object. Using the template, it produces
the following code:
           if (v == null)
Since the key is a short or byte, this would cause an error.  This also
occurs in the CopyInto method.

Here is the object.vm file that I used that fixed these issues.  I am not
that familiar with Velocity, so I imagine there is a better way to do the
fixes :-)

If you have any questions, or I am just doing something wrong, please let me
know. <<Object.vm>> 


Eric Carr
United States Mint
Microsoft Certified Application Developer

View raw message