You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by "Atkinson, Peter" <Pe...@DrKW.com> on 2003/04/17 11:08:05 UTC

Replacement of Objects with Primitive Types

Does anyone know if it possible to configure Torque to generate java
primitive types on the BaseTableXXXX classes. 
E.g. use int instead of java.math.BigInteger and double instead of Double
etc...


----------------------------------------------------------------------
If you have received this e-mail in error or wish to read our e-mail 
disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender.
----------------------------------------------------------------------


Re: Replacement of Objects with Primitive Types

Posted by Andreou Andreas <an...@di.uoa.gr>.
Atkinson, Peter wrote:

>Does anyone know if it possible to configure Torque to generate java
>primitive types on the BaseTableXXXX classes. 
>
I guess this list is not the correct one for this question...

>E.g. use int instead of java.math.BigInteger and double instead of Double
>etc...
>
But anyway :), in your schema.xml file use:
<database ... defaultJavaType="primitive">
...
</database>

instead of defaultJavaType="object"