RE: Retrieve auto-incremeneted primary-key?

2004-04-29 Thread McCaffrey, John G.
The object should be updated with its PK after the insert. Try the get method for that value. if it is a DB Identity column (and the Get isn't working) you may have to use a sequenceManager. (If so, look at the sequenceManaging threads, or Identity threads. It has been well discussed) HTH -

RE: Retrieve auto-incremeneted primary-key?

2004-04-29 Thread Mindy Pereira
That's correctchecked it once I was given the idea -Original Message- From: Pedro Salgado [mailto:[EMAIL PROTECTED] Sent: Thursday, April 29, 2004 11:24 AM To: OJB Users List Subject: Re: Retrieve auto-incremeneted primary-key? I think the object itself already keeps the

Re: Retrieve auto-incremeneted primary-key?

2004-04-29 Thread Pedro Salgado
I think the object itself already keeps the auto-incremented after the store operation. Pedro Salgado On 04/04/29 16:21, "Mindy Pereira" <[EMAIL PROTECTED]> wrote: > Is there a way to retrieve the id of an object with an autoincremented > primary key that was just inserted using the broker.st

RE: Retrieve auto-incremeneted primary-key?

2004-04-29 Thread Glenn Barnard
It should be returned in the data object that was just inserted. From: "Mindy Pereira" <[EMAIL PROTECTED]> Reply-To: "OJB Users List" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Subject: Retrieve auto-incremeneted primary-key? Date: Thu, 29 Apr 2004 11:21:28 -0400 Is there a wa