zoukankan      html  css  js  c++  java
  • Mybatis Generator 代码生成配置

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
    <generatorConfiguration>
      <context id="context1">
        <commentGenerator>  
            <!-- 是否去除自动生成的注释 true:是 : false:否 -->  
            <property name="suppressAllComments" value="true"/>  
        </commentGenerator>  
        <jdbcConnection connectionURL="jdbc:mysql://localhost:3306/how2java" driverClass="com.mysql.jdbc.Driver" password="root" userId="root" />
        <javaModelGenerator targetPackage="pojo" targetProject="mybatis" />
        <sqlMapGenerator targetPackage="mapper" targetProject="mybatis" />
        <javaClientGenerator targetPackage="dao" targetProject="mybatis" type="XMLMAPPER" />
        <table schema="how2java" tableName="category_"  domainObjectName="categoryDo"
        enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false"
        enableSelectByExample="false" selectByExampleQueryId="false">
          <columnOverride column="name" property="categoryName" />
        </table>
        <table schema="how2java" tableName="order_"  domainObjectName="orderDo"
        enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false"
        enableSelectByExample="false" selectByExampleQueryId="false">
          <columnOverride column="name" property="categoryName" />
        </table>
        <table schema="how2java" tableName="order_item_"  domainObjectName="orderItemDo"
        enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false"
        enableSelectByExample="false" selectByExampleQueryId="false">
    <!--       <columnOverride column="name" property="categoryName" /> -->
        </table>
      </context>
    </generatorConfiguration>
  • 相关阅读:
    gulp之压缩合并MD5清空替换加前缀以及自动编译自动刷新浏览器大全
    HTML5之文件API
    Angular2之路由学习笔记
    nodejs之主机不能访问到虚拟机的web服务器
    学习CSS3动画(animation)
    jQuery之ajax错误调试分析
    Angular2之管道学习笔记
    css3之3D魔方动画(小白版)
    关于二维网格导入autodyn的问题
    两个橡胶球自由落体撞击弹性板
  • 原文地址:https://www.cnblogs.com/thiaoqueen/p/7775943.html
Copyright © 2011-2022 走看看