mybatis批量生成

使用了mybatis-generator后,寻找只写一个table标签就可以全部生成的方法

下载mybatis-generator-core-1.3.2-bundle.zip
解压后打开docs
发现tableName可以是sql通配符,这就好办了,%就可以批量生成
The name of the database table (not including the schema or catalog). The specified value can contain SQL wildcards if so desired.
  1. <table schema="" tableName="%" enableCountByExample="false"
  2. enableUpdateByExample="false" enableDeleteByExample="false"
  3. enableSelectByExample="false" selectByExampleQueryId="false"
  4. >




发现还是看官方文档收获大




附件列表

     

    posted @ 2017-02-06 00:34  stoneuu  阅读(238)  评论(0编辑  收藏  举报