RE: AW: Setting foreign key column as null

2007-01-11 Thread Greg Monroe
foreign key column as null Hi. Thanks for your help. Defining javaType as object for a column name seemed like the best solution. However the generated classes do not compile. The setParentAssetId method now takes a 'Long' instead of 'long' which will help me set it to null. However

Re: AW: Setting foreign key column as null

2007-01-10 Thread Shilpa Kulkarni
, January 9, 2007 1:56:18 PM Subject: RE: AW: Setting foreign key column as null The schema column tag has a javaType attribute that can be used to specify a single column is to be treated as an object rather than a primative. E.g.: column name=xxx javaType=object / FWIW, some DB server are very

AW: Setting foreign key column as null

2007-01-09 Thread Thoralf Rickert
Hi! Did you try database defaultJavaType=object. Then every primitive (long,int,boolean,...) is an object (Long, Integer, Boolean, ...). I think, you cannot set this for a single table. Just for all. bye Thoralf -Ursprüngliche Nachricht- Von: Shilpa Kulkarni [mailto:[EMAIL

Re: AW: Setting foreign key column as null

2007-01-09 Thread Shilpa Kulkarni
PROTECTED] To: Apache Torque Users List torque-user@db.apache.org Sent: Tuesday, January 9, 2007 1:45:37 AM Subject: AW: Setting foreign key column as null Hi! Did you try database defaultJavaType=object. Then every primitive (long,int,boolean,...) is an object (Long, Integer, Boolean, ...). I think

RE: AW: Setting foreign key column as null

2007-01-09 Thread Greg Monroe
set the FK column to NULL. -Original Message- From: Shilpa Kulkarni [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 09, 2007 4:10 PM To: Apache Torque Users List Subject: Re: AW: Setting foreign key column as null Thanks for your reply. Wouldn't this change other the generated