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: Saving a tree
Date Thu, 15 May 2003 14:08:51 GMT
Peter -

	This will work fine. Torque will use a null object and will
interpret it to the DB as null. Note for the rest of the folks: you can
override the value of "javaType" at the table level, as well.

- Justin

-----Original Message-----
From: peter riegersperger [mailto:rick@subnet.at]
Sent: Thursday, May 15, 2003 4:19 AM
To: Turbine Torque Users List
Subject: Re: Saving a tree


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

On Thursday 15 May 2003 10:08, Remke Rutgers wrote:
> Hi Malte,
>
> My guess is that your property PreviousExpiryDataItemID is an int in your
> Torque objects (primitive type, not an object type). Since there is no
null
> concept for the primitive types, I think there is no way to have Torque
> save this property as null. I think it will work if you use object Integer
> types in your Torque objects. (I don't know the exact syntax in the
schema,
> but that should be easy to find in the docs)

http://db.apache.org/torque/schema-reference.html

<database defaultJavaType="object">

but i'm not sure if that will work (i think i remember that torque will
still 
try to insert a '0', but i can be wrong)

peter


- -- 
|-
| peter riegersperger  <rick@subnet.at>
|-
| subnet
| platform for media art and experimental technologies
|-
| http://www.subnet.at/
|-
| muehlbacherhofweg 5 // 5020 salzburg // austria
|-
| fon/fax +43/662/842 897
|- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+w02DIMP39JYOy9IRAhmlAKCCJ+QKRuFTRtATy7cYjqec5ufHIwCeKG4v
1DPDXqcV2QPAZoo0EI1Aiec=
=QG+V
-----END PGP SIGNATURE-----


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