At the bottom of my post I wrote this:

<!-- 
The column named 'value' is used to set the PageID of the
passed in Page object as well as return an int
-->
<selectKey property="PageID" type="post" resultClass="int">
SELECT CAST(@@IDENTITY as int) as value
</selectKey>

--- Pablo Lopez <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I'm having exactly the same problem described at:
> 
>
http://www.mail-archive.com/ibatis-user-cs@incubator.apache.org/msg00055.html
> 
> (I wasn't subscribed yet)
> 
> I guess it had no responses.
> 
> Any help on retrieving auto-generated keys in insertions?
> 
> Thanks,
> 
> Pablo.
> 
> 

Reply via email to