Can't you just look at the primary key field (eg myObject.oid) of the object to 
retrieve the id value? OJB/ODMG will automatically set this value when the object is 
persisted/retrieved...

Rob :)

-----Original Message-----
From: Fabiano Fernandes de Souza [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 6 January 2004 3:01 a.m.
To: [EMAIL PROTECTED]
Subject: Getting the Id in insertion time.



I'm using auto-increment fields. 
The OJB defines the new ID for this fields when I insert a new record. I would like to 
know how can I know those new ID's values after the insert task using ODMG.

There's a function that record the object in the database and return the ID value?

Otherwise, what can I do?

-- 
Fabiano F. Souza
Tecnologia da Informação
Estudar Soluções em Treinamento Corporativo.
(31) 32849294 - [EMAIL PROTECTED]


---------------------------------------------------------------------
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