ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: How to get sequence number back in inserted object
Date Fri, 21 Jan 2005 06:26:39 GMT
Put the SQL to retrieve the last serial value within the selectKey
block and set the property element.

Cheers,
Clinton


On Fri, 21 Jan 2005 11:46:49 +0530, Vamsee Kanakala <vamlists@gmail.com> wrote:
> Clinton Begin wrote:
> 
> >yep... use the property attribute of the selectKey element.
> >
> >
> >
> But what do I do if I'm using a 'serial' keyword for an integer column
> in Postgres, where it creates it's own sequence and assigns it to the id
> column?
> 
> TIA,
> Vamsee.
>

Mime
View raw message