You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Hristo Kosev <hk...@yahoo.com> on 2001/09/18 11:06:38 UTC

Getting the ID of the last inserted JobEntry?

hi,
can someone tell me if there's a way to get the ID of
the last inserted JobEntry. I think the JobEntry
mapbuilder is set to use IDBroker instead of
autoincrement so I can't get the ID using the standard
SQL functions/variables.

Hristo Kosev

__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Getting the ID of the last inserted JobEntry?

Posted by Heiko Braun <he...@fork.de>.
After you called foo.save() on your om object,
the id is available via foo.getFooId();

/heiko

On Tue, 18 Sep 2001, Hristo Kosev wrote:

> hi,
> can someone tell me if there's a way to get the ID of
> the last inserted JobEntry. I think the JobEntry
> mapbuilder is set to use IDBroker instead of
> autoincrement so I can't get the ID using the standard
> SQL functions/variables.
>
> Hristo Kosev
>
> __________________________________________________
> Terrorist Attacks on U.S. - How can you help?
> Donate cash, emergency relief information
> http://dailynews.yahoo.com/fc/US/Emergency_Information/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org