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>
  • 相关阅读:
    Zoundry Raven测试
    asp.net 异步加载?
    网页数据表格自动填充序号
    1.JSP
    C#基础之CLR的执行模型(二)
    C#基础之CLR的执行模型(一)
    java提供类与cglib包实现动态代理
    CSS初窥...
    Go的牛逼之处
    Go灵魂级选手之流程控制
  • 原文地址:https://www.cnblogs.com/thiaoqueen/p/7775943.html
Copyright © 2011-2022 走看看