no different then with XML. You need to pass the table name in as a
parameter. The only trick is that the table name is not a valid spot
for a JDBC parameter so you need to use the MyBatis string
substitution with ${tableName} instead of #{tableName}
On Wed, Apr 4, 2012 at 4:55 AM, oruchovets <
[hidden email]> wrote:
> Hi ,
> I want to use mybatis with annotations.
> In my use case table name can dynamically changed.(I need a way to
> pass table name as parameters).
> I am looking for example how can I select from table using mybatis +
> annotations + dynamic table name.
>
> Oleg
>
>
>
>
>
>
>
>
>
>