db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Otte" <Gerhard.O...@emediapark.de>
Subject RE: NULLS allowed FOREIGN keys short (SMALLINT) or byte(TINYINT)
Date Sun, 11 Jan 2004 09:58:14 GMT
Hello

You have to define javaType=Object in the column entry
of your schema file, both in the foreign key column and
and the column of the main table.


-----Original Message-----
From: Annapareddy, Reddy (Contractor)
[mailto:Reddy.Annapareddy@usmint.treas.gov] 
Sent: Friday, January 09, 2004 9:11 PM
To: torque-dev@db.apache.org; torque-user@db.apache.org
Subject: NULLS allowed FOREIGN keys short (SMALLINT) or byte(TINYINT)


hi!

If a table has nulls allowed FOREIGN keys short (SMALLINT) or
byte(TINYINT), Torque generating code and initializing these to a
default value of 0. where
0(ZERO) is not valid value in foreign keyed table. Causing update
constrain conflict since torque using java primitive short/byte. In
torque 3.0.2 these columns as numberkey does not caused any problem.

Any thoughts..



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message