ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Butler <jeffgbut...@gmail.com>
Subject Re: iBATIS 3 @InsertProvider (and other @*Provider) annotation question
Date Fri, 21 May 2010 14:59:01 GMT
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.sherwin@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-unsubscribe@ibatis.apache.org
> For additional commands, e-mail: user-java-help@ibatis.apache.org
>
>

---------------------------------------------------------------------
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