码迷,mamicode.com
首页 > 其他好文 > 详细

自动生成代码工具

时间:2018-09-29 11:18:28      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:bye   limit   LLC   column   ntb   jar   over   enabled   classpath   

<?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>
    <classPathEntry location="ojdbc14.jar" />
    <context id="context1">
        <commentGenerator>
            <property name="suppressAllComments" value="true" />
        </commentGenerator>
        <jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@139.219.199.9:1521:coaltest" userId="fw_data_user" password="123456" />
        <javaModelGenerator targetPackage="com.bean" targetProject="src" />
        <sqlMapGenerator targetPackage="com.mapper" targetProject="src" />
        <javaClientGenerator type="XMLMAPPER" targetPackage="com.dao" targetProject="src">
            <property name="enableSubPackages" value="true"/>
        </javaClientGenerator>
        <table tableName="T_PF_CHECK_RESULT" domainObjectName="PfCheckResult"
            delimitIdentifiers="true" delimitAllColumns="true"
            enableCountByExample="false" enableUpdateByExample="false"
            enableDeleteByExample="false" enableSelectByExample="false"
            selectByExampleQueryId="false">
        </table>
    </context>
</generatorConfiguration>

执行命令:java -jar mybatis-generator-core-1.3.5.jar -configfile generatorConfig.xml -overwrite

参考

自动生成代码工具

标签:bye   limit   LLC   column   ntb   jar   over   enabled   classpath   

原文地址:https://www.cnblogs.com/xmsx/p/9722219.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!