To use the auto-increment, you must specify the sequence name.
I suggest that you get your sequence number manually, set your fields (pk
and the others)
with this value and store the object.
Normally, the auto-increment is not taken into account if you provide an id.
Can someone confirm the last point ?

David WIESZTAL.


-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Gene
Sent: Friday, December 03, 2004 5:00 AM
To: [EMAIL PROTECTED]
Subject: Re: How to obtain autoincrement field value once an object is
created?


But before I can store() the object, I must filled the TheSameValueField
 with values(same as Id field) as it is a not null field/column.
Otherwise, database error will be raised.

Gene



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to