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
Thanks for your reply. Wouldn't this change other the generated classes as well. There is lot of code already passing primitives to exisiting data classes. Is there anything that can be specifically done for this column? Shilpa - Original Message From: Thoralf Rickert [EMAIL

RE: AW: Setting foreign key column as null

2007-01-09 Thread Greg Monroe
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 strict about foreign key constraints. So, your DB server may not let you