ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <jeffgbut...@gmail.com>
Subject Re: Abator - quick but where is the returned id?
Date Mon, 05 Feb 2007 13:32:29 GMT
If you're using sequences or identity columns in your database, then use
the <generatedKey> element in your Abator configuration - and then the
insert will return the new key.

The example class is used for the selectByExample and deleteByExample
methods.  There is a page in the Abator documentation regarding the use of
this class (called "Example Class Usage Notes").

Abator documentation is here:


I'm glad you like Abator.

Jeff Butler

On 2/5/07, xianwinwin <xianwinwin@gmail.com> wrote:
> Hi there,
> I'm using abator to construct the domain and the DAO and it's AMAZING!!!
> I have 2 question:
> 1. I wonder why when insert is performed, there is no return value (like
> the
> id?) I do it manually but wonder if I can do something to avoid that.
> 2. what is the Example that is added to the domain(bean)?
> thanks a lot
> --
> View this message in context:
> http://www.nabble.com/Abator---quick-but-where-is-the-returned-id--tf3172784.html#a8801671
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

View raw message