Created
March 16, 2018 08:29
-
-
Save haies/afa7b438b2254b945f4bdb1652d29b6d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> | |
<properties resource="config/jdbc.properties"/> | |
<!-- 数据库驱动--> | |
<classPathEntry location="D:\XRepository\maven\postgresql\postgresql\9.1-901-1.jdbc4\postgresql-9.1-901-1.jdbc4.jar"/> | |
<context id="DB2Tables" targetRuntime="MyBatis3"> | |
<commentGenerator> | |
<property name="suppressDate" value="true"/> | |
<!-- 是否去除自动生成的注释 true:是 : false:否 --> | |
<property name="suppressAllComments" value="true"/> | |
</commentGenerator> | |
<!--数据库链接URL,用户名、密码 --> | |
<jdbcConnection driverClass="${jdbc.driver}" connectionURL="${jdbc.url}" userId="${jdbc.username}" password="${jdbc.password}"> | |
</jdbcConnection> | |
<javaTypeResolver> | |
<property name="forceBigDecimals" value="false"/> | |
</javaTypeResolver> | |
<!--</javaTypeResolver>--> | |
<!-- 生成模型的包名和位置--> | |
<javaModelGenerator targetPackage="com.zjchey.xxfy.onProcess.entity" 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> | |
<!-- 生成DAO的包名和位置--> | |
<javaClientGenerator type="XMLMAPPER" targetPackage="com.zjchey.xxfy.onProcess.dao" targetProject="src/main/java"> | |
<property name="enableSubPackages" value="true"/> | |
</javaClientGenerator> | |
<!-- 要生成哪些表--> | |
<!--<table tableName="user_profile" domainObjectName="UserProfile" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>--> | |
<table tableName="project_file" domainObjectName="ProjectFile" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> | |
</context> | |
</generatorConfiguration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment