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 -----Original Message----- From: Mindy Pereira [mailto:[EMAIL PROTECTED] Sent: Thursday, April 29, 2004 10:21 AM To: OJB Users List Subject: Retrieve auto-incremeneted primary-key? Is there a way to retrieve the id of an object with an autoincremented primary key that was just inserted using the broker.store() method? Thanks. --------------------------------------------------------------------- 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]
