ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Karl Schwaerzler <Thomas.Schwaerz...@student.uibk.ac.at>
Subject Re: insert with id as return value
Date Tue, 04 Jul 2006 22:33:10 GMT

hi,

doesn't really look like:

OdmLinkDAOImpl.java:

<snip>

    /**
      * This method was generated by Abator for iBATIS.
      * This method corresponds to the database table c108272dev.ODM_LINK
      *
      * @abatorgenerated Tue Jul 04 18:48:58 CEST 2006
      */
     public void insert(OdmLink record) {
         insert("c108272dev_ODM_LINK.abatorgenerated_insert", record);
     }


</snip>

greets
tom.

On Tue, 4 Jul 2006, Graeme J Sweeney wrote:

> On Tue, 4 Jul 2006, Thomas Karl Schwaerzler wrote:
>
> You don't have to do this
>
>> 		link.setId(id);
>
> as this call
>
>> 		linkDao.insert(link);
>
> will return you the id. Check the javadoc of your DAO (or LinkDAOImpl.java).
>
> -- 
> Graeme -
>

Mime
View raw message