If you have an object Foo and you call foo.save() or use the Peer
directly and call FooPeer.doInsert(foo);  foo will then have its id set
and it is available through either getPrimaryKey() or through the 
column getter ( e.g. getFooId() ).

john mcnally

James Coltman wrote:
> 
> Hi,
> 
> I use the id_broker to create unique id for each new row. In order to
> populate my foreign keys on other tables I need to use this newly created
> id. When you create a new row entry how do you find out the id that was
> allocated to that entry? Is the only way to do a second select to get back
> the newly created row (an id)? I assume someone must have come across this
> before. Any help would be much appreciated.
> 
> James
> 
> ---------------------------------------------------------------------
> 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