Re: How to disable the "Example_Where_Clause" in XXXMapper.xml

39 views
Skip to first unread message

Jeff Butler

unread,
Nov 7, 2012, 10:27:06 AM11/7/12
to mybati...@googlegroups.com
Two options:

1. Set targetRuntime="MyBatis3Simple" on the <context> element
2. Set all the enable*ByExample attributes to "false" on the <table> element

Look at the help pages for <table> and <context>.

Jeff Butler


On Wed, Nov 7, 2012 at 9:58 AM, FromBasic <grain...@gmail.com> wrote:
Hello everyone,

I am new here. And I lost a long long help after I click "send". So, this time a very brief version....:

How to disable  the "Example_Where_Clause" in XXXMapper.xml

I have successfully run the "hello mybatis" example. But I really don't need the Example which existing in every generated files. I have read the help from mybatis-generator-core-1.3.2.jar, but no help.

Waiting for your kind reply....

FromBasic

unread,
Nov 7, 2012, 10:54:24 AM11/7/12
to mybati...@googlegroups.com
1. Set targetRuntime="MyBatis3Simple" on the <context> element 
is exactly what I need. 
Thank you!

在 2012年11月7日星期三UTC+8下午11时27分08秒,Jeff Butler写道:
Reply all
Reply to author
Forward
0 new messages