<?xml version=“1.0” encoding=“UTF-8”?>
<!DOCTYPE generatorConfiguration
PUBLIC “-////DTD MyBatis Generator Configuration 1.0//EN”
“http:///dtd/mybatis-generator-config_1_0.dtd”>
<generatorConfiguration>
<!– classPathEntry:数据库的JDBC驱动的jar包地址–>
<classPathEntry location=“D:oracleinstantclient_11_2ojdbc6.jar” />
<context id=“ORACLE_TABLES” targetRuntime=“MyBatis3”>
<commentGenerator>
<property name=“suppressAllComments” value=“true” />
<property name=“suppressDate” value=“true” />
</commentGenerator>
<jdbcConnection driverClass=“oracle.jdbc.driver.OracleDriver”
connectionURL=“jdbc:oracle:thin:@172.16.10.55:1521:orcl”
userId=“shange”
password=“”>
</jdbcConnection>
<!– 默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer
true,把JDBC DECIMAL 和 NUMERIC 类型解析为java.math.BigDecimal
–>
<javaTypeResolver >
<property name=“forceBigDecimals” value=“true” />
</javaTypeResolver>
<!– targetProject:自动生成代码的位置 –>
<!– 这里是 实体类的包. –>
<javaModelGenerator targetPackage=“com.isprint.server.yessafeid.core.model.bto” targetProject=“src”>
<!– enableSubPackages:是否让schema作为包的后缀 –>
<property name=“enableSubPackages” value=“true” />
<!– 从数据库返回的值被清理前后的空格 –>
<property name=“trimStrings” value=“true” />
</javaModelGenerator>
<!– 这里是放XML 隐射文件的目录 –>
<sqlMapGenerator targetPackage=“com.isprint.server.yessafeid.core.dao.mapper.oracle” targetProject=“src”>
<property name=“enableSubPackages” value=“true” />
</sqlMapGenerator>
<!– 这里是放接口文件的包名 –>
<javaClientGenerator type=“XMLMAPPER” targetPackage=“com.isprint.server.yessafeid.core.dao” targetProject=“src”>
<property name=“enableSubPackages” value=“true” />
</javaClientGenerator>
<!– tableName:用于自动生成代码的数据库表;domainObjectName:对应于数据库表的javaBean类名 –>
<table schema=“” tableName=“T_USER” domainObjectName=“UserBto”
enableCountByExample=“false” enableUpdateByExample=“false”
enableDeleteByExample=“false” enableSelectByExample=“false”
selectByExampleQueryId=“false”>
</table>
</context>
</generatorConfiguration>


版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/197475.html