只需要在配置要生成的table表中添加几个配置属性就行了。 
在generatorConfig.xml文件中修改

 

   <!--指定数据库表-->
        <table tableName="t_user" schema=""  >
            <generatedKey column="userId" sqlStatement="Mysql" identity="true"/>
        </table>
        <table tableName="t_scene" schema=""  >
            <generatedKey column="sceneId" sqlStatement="Mysql" identity="true"/>
        </table>

  修改如下:

        <!--指定数据库表-->
        <table tableName="t_user" schema="" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false"
               enableSelectByExample="false" selectByExampleQueryId="false" >
            <generatedKey column="userId" sqlStatement="Mysql" identity="true"/>
        </table>
        <table tableName="t_scene" schema="" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false"
               enableSelectByExample="false" selectByExampleQueryId="false" >
            <generatedKey column="sceneId" sqlStatement="Mysql" identity="true"/>
        </table>

  

 

 

转自:http://blog.csdn.net/u012679583/article/details/53371034

 

相关文章:

  • 2021-06-08
  • 2021-09-28
  • 2021-06-22
  • 2021-12-07
  • 2021-10-20
  • 2021-08-19
  • 2021-07-19
猜你喜欢
  • 2021-09-25
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2021-05-10
相关资源
相似解决方案