Is there some sort of problem with torque in the latest tdk 2.1b4?
If I have a column defined as an Integer, torque generates the following
lines of code in my BasemytablePeer.java file
public static void populateObject (Record row,
int offset,
Mygencalitem obj )
throws Exception
{
obj.setDay(
new NumberKey(row.getValue(offset+0).asBigDecimal()));
As you can see it tries to generate the NumberKey by using asBigDecimal
instead of asInt. This produces a null NumberKey object.
If I set the primarykey to false in my database xml file the column reverts
back to using asInt in the populateObject method.
Can anyone give me any clues as to why this happening?
Thanks
Shaun
-----Original Message-----
From: Shaun Campbell [mailto:[EMAIL PROTECTED]]
Sent: 11 June 2001 16:46
To: '[EMAIL PROTECTED]'
Subject: RE: Torque problem
I don't seem to have a db.props in my conf directory, only what looks like
lots of defaults in my build directory.
Could this explain why the generated code chooses asBigDecimal instead of
asInt anyway? Do you know where Torque gets this from?
Thanks
Shaun
>The properties for a database that Torque uses are stored in
>conf/torque/templates/sql/base/<db>/db.props.
---------------------------------------------------------------------
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]