ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mitchell, Steven C" <Steven.Mitch...@umb.com>
Subject RE: inserting
Date Tue, 09 Aug 2005 12:37:56 GMT
We cheat.  In our insert method we manually get the next id from the
sequence, assign that value to a property of the object being inserted,
and then do the insert.

-----Original Message-----
From: Eugeny N Dzhurinsky [mailto:eugenydzh@jdevelop.com] 
Sent: Tuesday, August 09, 2005 7:20 AM
To: user-java@ibatis.apache.org
Subject: inserting


Is there any way to get the some key value (for example, current
sequence ID in postgres gf get_last_insert_id() in MySQL) after the
record was inserted in the database?

-- 
Eugene N Dzhurinsky

Mime
View raw message