HOWTO: Calculate primary key inside the insert stored procedure

2003-11-26 Thread Sergey V. Oudaltsov
Hi all We are trying to insert objects into the table using OJB through some stored procedure (MS SQL 2000) _without_ specifying the primary key (so initially it is null). The key is supposed to be calculated inside the stored procedure. Unfortunately, we get exception assertValidPkFields - it

Re: HOWTO: Calculate primary key inside the insert stored procedure

2003-11-26 Thread Armin Waibel
Hi Sergey, Did you tried to set field as read-only? access = read-only OJB version? regards, Armin Sergey V. Oudaltsov wrote: Hi all We are trying to insert objects into the table using OJB through some stored procedure (MS SQL 2000) _without_ specifying the primary key (so initially it is

Re: HOWTO: Calculate primary key inside the insert stored procedure

2003-11-26 Thread Armin Waibel
sorry i mean access = readonly without dash Armin Sergey V. Oudaltsov wrote: Did you tried to set field as read-only? access = read-only Not yet. I will though. Right now. OJB version? Straight from CVS HEAD (well, yesterday) Thanks for the idea,