db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Hopf <h...@synyx.de>
Subject Re: int, fks and null in Torque 3.1
Date Fri, 11 May 2007 14:05:03 GMT

> Ok, so in torque 3.1 integer foreign key columns are int attributes in the 
> database objects (it used to be a BigDecimal object or so before, if I 
> remember correctly). If your column can be null and you want to set it to 
> null since it has no foreign key, you cannot do this (or can you and I missed 
> it?). I worked around this by changing BasePeer class, so for me it's ok, but 
> I thought I could tell you.
You can use Java-Objects as keys if you insert  defaultJavaType="object"
in your database element in the schema. I'm not sure if this has been
available in 3.1 already.

Kind regards

To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org

View raw message