On Wed, Aug 26, 2009 at 1:10 PM, Douglas Bell <db...@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-unsubscr...@ibatis.apache.org
For additional commands, e-mail: user-java-h...@ibatis.apache.org

Reply via email to