zoukankan      html  css  js  c++  java
  • mybatis 在自动生成时设置不生成Example类

    只需要在配置要生成的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

     

  • 相关阅读:
    Qt进程间通信
    reinterpret
    vs调试技巧
    利用QSystemSemaphore和QSharedMemory实现进程间通讯
    QLocalSocket
    QShareMemory
    qt动态库实现无边框窗体的消息处理 nativeEvent的使用
    BCB6常用快捷键
    1219个人总结
    冲刺二 12.6
  • 原文地址:https://www.cnblogs.com/nunuAction/p/7064867.html
Copyright © 2011-2022 走看看