-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I think that null values are not supported for primitive types.
But you can change your schema to use objects instead of primitive types
for certain colums by setting the javaType attribute to object.
See
http://db.apache.org/torque/releases/torque-3.3/generator/schema-reference.html
within the column section.

Patrick

brycenesbitt schrieb:
> But SQL has an additional state:: null.  And there's a difference between
> calling a torque set method, and not calling a set method.  So the question
> remains: is Torque's behavior documented?  Does Torque support null column
> values for primitive type columns (e.g. columns other than String and
> NumberKey)?
> 
> 
> 
>> What you find here is the Java default behavior. A int has a default
>> value of 0. It can not be set to null. Therefore when the value is
>> initialized and no other value is given it is set to 0. Same applies to
>> long.
>>
> 

- --
Patrick Carl
mailto:[EMAIL PROTECTED]                                http://carl.it
GnuPG-Fingerprint: 3599 02CF 0419 BCA6 6BAC 4B53 DB7C 1897 451C F498
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFHJdp723wYl0Uc9JgRAj4hAJ4gtkd7rU/N2vPUEd5jwZGbj91BKwCgvl1x
AFOghNKPt0YNyMSjX2EYabU=
=1MN0
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to