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.

113 lines
7.5 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://test.tall.wiki:3306/carbasics?useUnicode=true&amp;characterEncoding=UTF-8&amp;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.carbasics.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.carbasics.persist.mapper"
targetProject=".\src\main\java">
<!-- enableSubPackages:是否让schema作为包的后缀 -->
<property name="enableSubPackages" value="false" />
</javaClientGenerator>
<!-- <table tableName="t_organization" domainObjectName="Organization"></table>-->
<!-- <table tableName="t_qcp_ocr_keyword" domainObjectName="OcrKeyword"></table>-->
<!-- <table tableName="t_qcp_ocr_keyword_option" domainObjectName="OcrKeywordOption"></table>-->
<!-- <table tableName="t_qcp_questionnaire" domainObjectName="Questionnaire"></table>-->
<!-- <table tableName="t_qcp_questionnaire_detail" domainObjectName="QuestionnaireDetail"></table>-->
<!-- <table tableName="t_qcp_questionnaire_record" domainObjectName="QuestionnaireRecord"></table>-->
<!-- <table tableName="t_qcp_button_config" domainObjectName="ButtonConfig"></table>-->
<!-- <table tableName="t_qcp_equipment_status" domainObjectName="EquipmentStatus"></table>-->
<!-- <table tableName="t_qcp_equipment_inform" domainObjectName="EquipmentInform"></table>-->
<!-- <table tableName="t_area" domainObjectName="Area"></table>-->
<!-- <table tableName="t_organization_department" domainObjectName="OrganizationDepartment"></table>-->
<!-- <table tableName="t_organization_member" domainObjectName="OrganizationMember"></table>-->
<!-- <table tableName="t_organization_member_position" domainObjectName="OrganizationMemberPosition"></table>-->
<!-- <table tableName="t_organization_parent" domainObjectName="OrganizationParent"></table>-->
<!-- <table tableName="t_organization_position" domainObjectName="OrganizationPosition"></table>-->
<!-- <table tableName="t_organization_project" domainObjectName="OrganizationProject"></table>-->
<!-- <table tableName="t_organization_template" domainObjectName="OrganizationTemplate"></table>-->
<!-- <table tableName="t_qcp_code_dictionaries" domainObjectName="CodeDictionaries"></table>-->
<!-- <table tableName="t_qcp_code_parent" domainObjectName="CodeParent"></table>-->
<!-- <table tableName="t_qcp_first_aid" domainObjectName="FirstAid"></table>-->
<!-- <table tableName="t_qcp_first_aid_log" domainObjectName="FirstAidLog"></table>-->
<!-- <table tableName="t_qcp_first_aid_member" domainObjectName="FirstAidMember"></table>-->
<!-- <table tableName="t_qcp_questionnaire_data_datum_line" domainObjectName="QuestionnaireDataDatumLine"></table>-->
<!-- <table tableName="t_qcp_account_manage" domainObjectName="AccountManage"></table>-->
<!-- <table tableName="t_qcp_first_aid_record" domainObjectName="FirstAidRecord"></table>-->
<!-- <table tableName="t_constant" domainObjectName="ConstantDB"></table>-->
<!-- <table tableName="t_qcp_last_role_choose" domainObjectName="LastRoleChoose"></table>-->
<!-- <table tableName="t_qcp_code_name" domainObjectName="CodeName"></table>-->
<!-- <table tableName="t_qcp_account_manage" domainObjectName="AccountManage"></table>-->
<!-- <table tableName="t_qcp_first_aid_record_log" domainObjectName="FirstAidRecordLog"></table>-->
<!-- <table tableName="t_qcp_first_aid_record_log" domainObjectName="FirstAidRecordLog"></table>-->
<!-- <table tableName="t_step" domainObjectName="Step"></table>-->
<!-- <table tableName="t_question_ocr" domainObjectName="QuestionOcr"></table>-->
<table tableName="t_organization" domainObjectName="Organization"></table>
<!-- <table tableName="t_organization_department" domainObjectName="OrganizationDepartment"></table>-->
<!-- <table tableName="t_organization_department_parent" domainObjectName="OrganizationDepartmentParent"></table>-->
<!-- <table tableName="t_organization_position" domainObjectName="OrganizationPosition"></table>-->
<!-- <table tableName="t_organization_position_type" domainObjectName="OrganizationPositionType"></table>-->
<!-- <table tableName="t_organization_position_type_relation" domainObjectName="OrganizationPositionTypeRelation"></table>-->
<!-- <table tableName="t_organization_department_template" domainObjectName="OrganizationDepartmentTemplate"></table>-->
<!-- <table tableName="t_qcp_menu_power" domainObjectName="MenuPower"></table>-->
<!-- <table tableName="t_qcp_position_power" domainObjectName="PositionPower"></table>-->
<!-- <table tableName="t_qcp_menu_plugin" domainObjectName="MenuPlugin"></table>-->
<!-- <table tableName="t_organization_level" domainObjectName="OrganizationLevel"></table>-->
<!-- <table tableName="t_organization_position" domainObjectName="OrganizationPosition"></table>-->
<!-- 有些表的字段需要指定java类型
<table schema="" tableName="">
<columnOverride column="" javaType="" />
</table> -->
</context>
</generatorConfiguration>