ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Goodin" <brandon.goo...@gmail.com>
Subject Re: Id after insert
Date Fri, 08 Sep 2006 11:43:49 GMT
Are you using the <selectKey> functionality in your <insert> to populate the
auto generated primary key?

Brandon

On 9/8/06, Andreas Prudzilko <aprudzilko@digitalchocolate.com> wrote:
>
>  Hey,
>
>
>
> I'm using a regular method to insert stuff as in:
>
>
>
> Object id = client.insert("ProductionTrack.insert", track);
>
>
>
> I'm using mysql with an autoincrement column. But my id is always null.
> Any ideas?
>
>
>
> - Andreas
>
>
>
> *Andreas Prudzilko*
>
> Tools Developer
>
>
>
>
>

Mime
View raw message