You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
5.3 KiB
90 lines
5.3 KiB
4 years ago
|
<?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="MySQL" targetRuntime="MyBatis3">
|
||
|
<!-- 为生成的Java模型创建一个toString方法 -->
|
||
|
<plugin type="org.mybatis.generator.plugins.ToStringPlugin"></plugin>
|
||
|
|
||
|
<!-- 自定义的序列化 类文件 插件 -->
|
||
|
<plugin type="org.mybatis.generator.plugins.SerializablePlugin"></plugin>
|
||
|
|
||
|
<!-- 重新生成xml文件,而不是追加 -->
|
||
|
<plugin type="org.mybatis.generator.plugins.UnmergeableXmlMappersPlugin" />
|
||
|
|
||
|
<commentGenerator>
|
||
|
<!-- 是否去除自动生成的注释 true:是 : false:否 -->
|
||
|
<property name="suppressAllComments" value="true" />
|
||
|
</commentGenerator>
|
||
|
|
||
|
<!--数据库连接的信息:驱动类、连接地址、用户名、密码 -->
|
||
|
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
|
||
|
connectionURL="jdbc:mysql://49.233.89.188:3306/pt_ccsens?useUnicode=true&characterEncoding=UTF-8&tinyInt1isBit=false"
|
||
|
userId="root"
|
||
|
password="po3OynBO[M3579p6L7)o">
|
||
|
</jdbcConnection>
|
||
|
|
||
|
<!-- 默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer,为 true时把JDBC DECIMAL 和
|
||
|
NUMERIC 类型解析为java.math.BigDecimal -->
|
||
|
<javaTypeResolver>
|
||
|
<property name="forceBigDecimals" value="true" />
|
||
|
</javaTypeResolver>
|
||
|
|
||
|
<!-- targetProject:生成PO类的位置 -->
|
||
|
<javaModelGenerator targetPackage="com.ccsens.ptccsens.bean.po"
|
||
|
targetProject=".\src\main\java">
|
||
|
<!-- enableSubPackages:是否让schema作为包的后缀 -->
|
||
|
<property name="enableSubPackages" value="false" />
|
||
|
<!-- 从数据库返回的值被清理前后的空格 -->
|
||
|
<property name="trimStrings" value="true" />
|
||
|
</javaModelGenerator>
|
||
|
|
||
|
<!-- targetProject:mapper映射文件生成的位置 -->
|
||
|
<sqlMapGenerator targetPackage="mapper_raw"
|
||
|
targetProject=".\src\main\resources">
|
||
|
<!-- enableSubPackages:是否让schema作为包的后缀 -->
|
||
|
<property name="enableSubPackages" value="false" />
|
||
|
</sqlMapGenerator>
|
||
|
|
||
|
<!-- targetPackage:mapper接口生成的位置 -->
|
||
|
<javaClientGenerator type="XMLMAPPER"
|
||
|
targetPackage="com.ccsens.ptccsens.persist.mapper"
|
||
|
targetProject=".\src\main\java">
|
||
|
<!-- enableSubPackages:是否让schema作为包的后缀 -->
|
||
|
<property name="enableSubPackages" value="false" />
|
||
|
</javaClientGenerator>
|
||
|
|
||
|
<!-- <table tableName="t_constant" domainObjectName="Constant"></table>-->
|
||
|
<!-- <table tableName="t_label" domainObjectName="Label"></table>-->
|
||
|
<!-- <table tableName="t_label_business" domainObjectName="LabelBusiness"></table>-->
|
||
|
<!-- <table tableName="t_label_type" domainObjectName="LabelType"></table>-->
|
||
|
<!-- <table tableName="t_pro_member" domainObjectName="ProMember"></table>-->
|
||
|
<!-- <table tableName="t_pro_parent_task" domainObjectName="ProParentTask"></table>-->
|
||
|
<!-- <table tableName="t_pro_role" domainObjectName="ProRole"></table>-->
|
||
|
<!-- <table tableName="t_pro_role_member" domainObjectName="ProRoleMember"></table>-->
|
||
|
<!-- <table tableName="t_pro_role_repulsion" domainObjectName="ProRoleRepulsion"></table>-->
|
||
|
<!-- <table tableName="t_pro_role_show" domainObjectName="ProRoleShow"></table>-->
|
||
|
<!-- <table tableName="t_pro_role_task" domainObjectName="ProRoleTask"></table>-->
|
||
|
<!-- <table tableName="t_pro_task_detail" domainObjectName="ProTaskDetail"></table>-->
|
||
|
<!-- <table tableName="t_pro_task_flow" domainObjectName="ProTaskFlow"></table>-->
|
||
|
<!-- <table tableName="t_pro_task_notify" domainObjectName="ProTaskNotify"></table>-->
|
||
|
<!-- <table tableName="t_pro_task_panel_info" domainObjectName="ProTaskPanelInfo"></table>-->
|
||
|
<!-- <table tableName="t_pro_task_plugin" domainObjectName="ProTaskPlugin"></table>-->
|
||
|
<!-- <table tableName="t_pro_task_process" domainObjectName="ProTaskProcess"></table>-->
|
||
|
<!-- <table tableName="t_pro_task_share" domainObjectName="ProTaskShare"></table>-->
|
||
|
<!-- <table tableName="t_pro_task_status_record" domainObjectName="ProTaskStatusRecord"></table>-->
|
||
|
<!-- <table tableName="t_pro_task_sub" domainObjectName="ProTaskSub"></table>-->
|
||
|
<!-- <table tableName="t_pro_task_version" domainObjectName="ProTaskVersion"></table>-->
|
||
|
<!-- <table tableName="t_pro_member_stakeholder" domainObjectName="ProMemberStakeholder"></table>-->
|
||
|
<table tableName="t_pro_deliver" domainObjectName="ProDeliver"></table>
|
||
|
<table tableName="t_pro_deliver_checker" domainObjectName="ProDeliverChecker"></table>
|
||
|
<table tableName="t_pro_clocking_in" domainObjectName="ProClockingIn"></table>
|
||
|
|
||
|
<!-- 有些表的字段需要指定java类型
|
||
|
<table schema="" tableName="">
|
||
|
<columnOverride column="" javaType="" />
|
||
|
</table> -->
|
||
|
</context>
|
||
|
</generatorConfiguration>
|