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:

http://ibatis.apache.org/docs/tools/abator/

I'm glad you like Abator.

Jeff Butler


On 2/5/07, xianwinwin <[EMAIL PROTECTED]> 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.


Reply via email to