Return-Path: Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 24446 invoked from network); 5 Feb 2003 20:04:44 -0000 Received: from smtp3.snowball.com (64.41.179.203) by daedalus.apache.org with SMTP; 5 Feb 2003 20:04:44 -0000 Received: from sc4mail.corp.snowball.com (mail.in.snowball.com [192.168.75.105]) by smtp3.snowball.com (8.12.3/8.12.3) with ESMTP id h15K4dg2002242 for ; Wed, 5 Feb 2003 12:04:39 -0800 (PST) Received: from G42_5.ign.com (g42_5.corp.snowball.com [192.168.20.205]) by sc4mail.corp.snowball.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id CK4RK9T5; Wed, 5 Feb 2003 12:00:00 -0800 Message-Id: <5.1.0.14.2.20030205120031.02c09e58@mail.snowball.com> X-Sender: gfortytwo@mail.snowball.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 05 Feb 2003 12:04:27 -0800 To: "Turbine Torque Users List" From: Geoff Fortytwo Subject: Re: Java Primitive Data Types in Torque In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Use the torque type "NUMERIC" instead of type "INTEGER". It'll return java.math.BigDecimal (which can be null) instead of int. Check out my faq at: http://g42.org/programming/torque/TorqueHowto.html There's a list of types at the bottom. If anyone wants to take that faq and convert it to xdoc or whatever it needs to be to be displayed on the torque website then be my guest. I'm not willing to figure out how to use a cvs client to get the code to run the translator which would then convert the xml I would then write to an xdoc so that I could then use cvs to submit it to the site. It's too much hassle. At 11:52 AM 2/5/2003, you wrote: >Hello - > > 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? > >Thanks in advance. > >Justin Campbell >Project Technical Lead >Profile Systems, Inc. > >--------------------------------------------------------------------- >To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org >For additional commands, e-mail: torque-user-help@db.apache.org