Not right - the parameter object on the interface method is passed to the *Provider method:
// interface... @InsertProvider(type=MyProvider.class, method="myInsert") int insertFoo(Foo foo); // provider method... public String myInsert(Foo foo) { .... } Works like a charm. BTW - join us at the new project - www.mybatis.org New mailing list: http://groups.google.com/group/mybatis-user Jeff Butler On Fri, May 21, 2010 at 9:23 AM, Alex Sherwin <alex.sher...@acadiasoft.com> wrote: > I just want to make sure, but there is there simply no way to pass arguments > to the sql provider method defined in the annotations such as > @InsertProvider? > > It would be very beneficial to be able to do so in terms of building dynamic > sql, such as an insert statements for a dynamic number of rows > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org > For additional commands, e-mail: user-java-h...@ibatis.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-java-h...@ibatis.apache.org