<?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"> <!-- 执行命令示例: 在此文件所在当前目录下执行 非覆盖模式:java -jar mybatis-generator-core-1.3.5.jar -configfile generatorConfig.xml 覆盖模式: java -jar mybatis-generator-core-1.3.5.jar -configfile generatorConfig.xml -overwrite --> <generatorConfiguration> <!-- 这里的location要替换成你本机的实际路径 --> <classPathEntry location="./ojdbcJdk16-1.0.0.jar" /> <context id="myDb" targetRuntime="MyBatis3"> <plugin type="org.mybatis.generator.plugins.ToStringPlugin" /> <plugin type="org.mybatis.generator.plugins.CaseInsensitiveLikePlugin" /> <plugin type="org.mybatis.generator.plugins.FluentBuilderMethodsPlugin" /> <plugin type="com.legion.mybatis.generator.plugin.InsertDatePlugin"> <property name="OTC_NEWBOND_DISTRIBUTION" value="CREATION_TIME"/> </plugin> <plugin type="com.legion.mybatis.generator.plugin.SysdatePlugin"> <property name="OTC_NEWBOND_DISTRIBUTION" value="LAST_UPDATE_TIME"/> </plugin> <plugin type="com.legion.mybatis.generator.plugin.FundRightPlugin"> <property name="OTC_NEWBOND_DISTRIBUTION" value="BOND_CODE"/> </plugin> <commentGenerator> <property name="suppressAllComments" value="true" /> </commentGenerator> <jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@192.168.8.200:1521/DEVCMFBP" userId="fundoper" password="cmf+2011"> </jdbcConnection> <javaTypeResolver> <property name="forceBigDecimals" value="false" /> </javaTypeResolver> <javaModelGenerator targetPackage="com.cmf.otc.newbond.core.bean" targetProject="src/main/java"> <property name="enableSubPackages" value="true" /> <property name="trimStrings" value="true" /> </javaModelGenerator> <sqlMapGenerator targetPackage="mapper" targetProject="src/main/resources"> <property name="enableSubPackages" value="true" /> </sqlMapGenerator> <javaClientGenerator type="XMLMAPPER" targetPackage="com.cmf.otc.newbond.core.mapper" targetProject="src/main/java"> <property name="enableSubPackages" value="true" /> </javaClientGenerator> <table tableName="OTC_NEWBOND_DISTRIBUTION" domainObjectName="Distribution"> <generatedKey column="DISTRIBUTION_ID" sqlStatement="select SEQ_OTC_NEWBOND_DISTRIBUTION.nextval from dual" /> </table> </context> </generatorConfiguration>
时间: 2024-10-13 01:05:37