Re: Is this a Torque bug or a problem in my code?

2004-01-22 Thread Karl Stenerud
2004 1月 22 木曜日 18:44、Andras Balogh さんは書きました: > Hello Karl, > > I don't know if this will fix the problems you have but i think you > need to set > idMethod="none" for the RestaurantInformation table definition in schema. > (since the

RE: DB2/400 inserts fail with Torque code

2004-01-22 Thread Vikas Phonsa
If this issue has not explicitly stated on the Torque website then I think it would be a good idea to do that. Cause it took me hours to debug and find out what the problem was. Or somehow get a better stack trace or log message. Thanks Vikas -Original Message- From: Andras Balogh [mail

Re: Is this a Torque bug or a problem in my code?

2004-01-22 Thread Andras Balogh
Hello Karl, I don't know if this will fix the problems you have but i think you need to set idMethod="none" for the RestaurantInformation table definition in schema. (since the primary key is a composite key) After that you will ned to regenerate the classes. Also i think you have to st

Is this a Torque bug or a problem in my code?

2004-01-22 Thread Karl Stenerud
Can someone please tell me if the following is a Torque bug or a problem in my code? I'm building a system that allows multilingual information for a restaurant. The Restaurant object can have RestaurantInformation objects associated with it. The RestaurantInformation object has a composite key ma

Re: [torque] DB2/400 inserts fail with Torque code

2004-01-22 Thread Federico Spinazzi
Vikas Phonsa wrote: Hi, I can't insert data into my DB2/400 using the torque generated classes. The reason is the ResultSetMetaData obtained from the ResultSet returned by the Select statement before the Inserts in Torque code, gives all my columns to be readOnly. This is not pointed out in the e

Re: DB2/400 inserts fail with Torque code

2004-01-22 Thread Andras Balogh
Hello, We had the same problem using Sybase DB, and we did exactly the same, modified the village classes to set readonly=false. I think only ResultSetMetaData can return the meta data of a table (i.e. column info) and not DatabaseMetaData. Best wishes, Andras. Vikas Phonsa wrote: Hi,