ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick <ric...@gmail.com>
Subject Re: [iBatis 3] insert/update via annotation w/ object example
Date Wed, 26 Aug 2009 17:34:27 GMT
On Wed, Aug 26, 2009 at 1:10 PM, Douglas Bell <DBell@boingo.com> wrote:
>
> I’ve been through the user guide and the test cases but don’t see a good example
of doing an insert or update with a Object using a annotation

> @Update(“INSERT INTO foo (bar_1, bar_2) VALUES (#{bar1}, #{bar2})”)
>
> void update(SomeObject obj);

> What am I missing?

Did you try it? Works fine for me (I'd use @Insert though for inserts,
but @Update works as well.)

I do agree though that it probably should be shown in the docs.
Clinton, I'll add that to the wiki.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Mime
View raw message