Re: Torque tries to insert 0 into nullable Foreign Key

2004-12-07 Thread Thomas Fischer
Hi Daniel, > Hi Sarav, > > > Use this attribute in the database tag. > > defaultJavaType="object" > > thank you very much. I would prefer primitives for my numbers, > especially the ids, but that is o.k. for me. Everything works, > with one exception: > > I have a foreign key that is "NOT NU

AW: Torque tries to insert 0 into nullable Foreign Key

2004-12-07 Thread Vitzethum, Daniel
Hi Sarav, > Use this attribute in the database tag. > defaultJavaType="object" thank you very much. I would prefer primitives for my numbers, especially the ids, but that is o.k. for me. Everything works, with one exception: I have a foreign key that is "NOT NULL", but has a default value. An

RE: Torque tries to insert 0 into nullable Foreign Key

2004-12-06 Thread Saravana Krishnan
CTED] > Sent: Monday, December 06, 2004 7:22 AM > To: Apache Torque Users List > Subject: Torque tries to insert 0 into nullable Foreign Key > > > Hello list, > > one more question: > > I have a schema with nullable foreign keys of type "INTEGER". > When sa

RE: Torque tries to insert 0 into nullable Foreign Key

2004-12-06 Thread Michael . Kashambuzi
he Torque Users List Subject: Torque tries to insert 0 into nullable Foreign Key Hello list, one more question: I have a schema with nullable foreign keys of type "INTEGER". When saving a new object, Torque's buildCriteria method inserts 0 as the according column's value, what

Re: Torque tries to insert 0 into nullable Foreign Key

2004-12-06 Thread Vitzethum, Daniel
Hi Thomas, thanks for the quick answer (as usual ;-) > I had the same problem before, and as I needed a quick solution, I > used string foreign keys instead (String foreign keys can be null). I > will open a scarab issue on this problem. my quick workaround: I have overridden and copied "buildC

RE: Torque tries to insert 0 into nullable Foreign Key

2004-12-06 Thread Thomas Fischer
Hi Daniel, I had the same problem before, and as I needed a quick solution, I used string foreign keys instead (String foreign keys can be null). I will open a scarab issue on this problem. Thomas "Vitzethum, Daniel" <[EMAIL PROTECTED]> schrieb am 06.12.2004 13:22:17: > Hello list, > >

Torque tries to insert 0 into nullable Foreign Key

2004-12-06 Thread Vitzethum, Daniel
Hello list, one more question: I have a schema with nullable foreign keys of type "INTEGER". When saving a new object, Torque's buildCriteria method inserts 0 as the according column's value, what is wrong as it should be null. Even defaults in DB don't work therefore. My Oracle DB refuses to in