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
<[email protected]> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]