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.
114 lines
7.3 KiB
114 lines
7.3 KiB
<?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://101.201.226.163: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_plu_finance" domainObjectName="PluFinance"></table>-->
|
|
<!-- <table tableName="t_plu_finance_append_budget" domainObjectName="PluFinanceAppendBudget"></table>-->
|
|
<!-- <table tableName="t_plu_finance_apply" domainObjectName="PluFinanceApply"></table>-->
|
|
<!-- <table tableName="t_plu_finance_check" domainObjectName="PluFinanceCheck"></table>-->
|
|
<!-- <table tableName="t_plu_finance_check_log" domainObjectName="PluFinanceCheckLog"></table>-->
|
|
<!-- <table tableName="t_plu_finance_invoice" domainObjectName="PluFinanceInvoice"></table>-->
|
|
<!-- <table tableName="t_plu_finance_type" domainObjectName="PluFinanceType"></table>-->
|
|
<!-- -->
|
|
<!-- <table tableName="t_pro_member" domainObjectName="ProMember"></table>-->
|
|
<!-- <table tableName="t_pro_member_stakeholder" domainObjectName="ProMemberStakeholder"></table>-->
|
|
<!-- <table tableName="t_pro_parent_task" domainObjectName="ProParentTask"></table>-->
|
|
<!-- <table tableName="t_pro_project_share" domainObjectName="ProProjectShare"></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_share_member" domainObjectName="ProShareMember"></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_user" domainObjectName="ProUser"> </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_sys_log" domainObjectName="SysLog"></table>-->
|
|
<!-- <table tableName="t_plu_deliver" domainObjectName="PluDeliver"></table>-->
|
|
<!-- <table tableName="t_plu_deliver_record" domainObjectName="PluDeliverRecord"></table>-->
|
|
<!-- <table tableName="t_plu_deliver_record_file" domainObjectName="PluDeliverRecordFile"></table>-->
|
|
<!-- <table tableName="t_plu_deliver_record_check" domainObjectName="PluDeliverRecordCheck"></table>-->
|
|
<!-- <table tableName="t_plu_deliver_record_check_log" domainObjectName="PluDeliverRecordCheckLog"></table>-->
|
|
<!-- <table tableName="t_plu_clocking_in" domainObjectName="PluClockingIn"></table>-->
|
|
<!-- <table tableName="t_sys_holidays" domainObjectName="SysHolidays"></table>-->
|
|
|
|
<!-- <table tableName="t_plu_daily_account_pro" domainObjectName="PluDailyAccountPro"></table>-->
|
|
<!-- <table tableName="t_plu_daily_account_emp" domainObjectName="PluDailyAccountEmp"></table>-->
|
|
<!-- <table tableName="t_plu_daily_account_task" domainObjectName="PluDailyAccountTask"></table>-->
|
|
<!-- <table tableName="t_plu_daily_account_emp_pro_task" domainObjectName="PluDailyAccountEmpProTask"></table>-->
|
|
<table tableName="t_plu_member_salary" domainObjectName="PluMemberSalary"></table>
|
|
|
|
|
|
|
|
<!-- 有些表的字段需要指定java类型
|
|
<table schema="" tableName="">
|
|
<columnOverride column="" javaType="" />
|
|
</table> -->
|
|
</context>
|
|
</generatorConfiguration>
|