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>
  • 相关阅读:
    Qt:The CDB Process Terminated!调试失败
    关于【error C3646: 未知重写说明符】的若干种可能性
    QT:圆角设置
    Qt修改图片的背景色及设置背景色为透明的方法
    index首页加载数据库数据方法
    jsp+jstl实现登录验证
    java 分页
    初始Ajax学习笔记
    python wechat
    python json dumps load 区别
  • 原文地址:https://www.cnblogs.com/thiaoqueen/p/7775943.html
Copyright © 2011-2022 走看看