db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Campbell, Justin" <jcampb...@profilesys.com>
Subject RE: Java Primitive Data Types in Torque
Date Thu, 06 Feb 2003 19:34:20 GMT
Thanks, that worked great. We eventually wound up using
'defaultJavaType="object"' on the database tag.

-----Original Message-----
From: Scott Eade [mailto:seade@backstagetech.com.au]
Sent: Wednesday, February 05, 2003 3:07 PM
To: Torque Users List
Subject: Re: Java Primitive Data Types in Torque


On 6/02/2003 6:52 AM, "Campbell, Justin" <jcampbell@profilesys.com> wrote:

> We are having an issue here getting Torque to generate our object
> model using object data types rather than primitive data types (e.g.
Integer
> rather than int). This is essential functionality for us as types like int
> can not be null (instead, they are defaulted to 0 in the absence of a
> value). I feel confident that this feature exists (given comments and such
> that I've seen), but have been unable to locate a feature that allows this
> easily. Can anyone help us out?

Try javaType="object" for the relevant columns in your schema.

HTH,

Scott
-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
.Mac Chat/AIM: seade at mac dot com



---------------------------------------------------------------------
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