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.
77 lines
4.4 KiB
77 lines
4.4 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 type="org.mybatis.generator.plugins.SerializablePlugin"/>
|
|
|
|
<!-- 重新生成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://sd.tall.wiki:3306/acupuncture_yfyy?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8&tinyInt1isBit=false"
|
|
userId="root"
|
|
password="po3OynBO[M3579p6L7)o">
|
|
<!--仅仅查询当前库的表,不查询其他库-->
|
|
<property name="nullCatalogMeansCurrent" value="true"/>
|
|
</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.acupuncture.system.domain.po"
|
|
targetProject="..\acupuncture-system\src\main\java">
|
|
<!-- enableSubPackages:是否让schema作为包的后缀 -->
|
|
<property name="enableSubPackages" value="false"/>
|
|
<!-- 从数据库返回的值被清理前后的空格 -->
|
|
<property name="trimStrings" value="true"/>
|
|
</javaModelGenerator>
|
|
|
|
<!-- targetProject:mapper映射文件生成的位置 -->
|
|
<sqlMapGenerator targetPackage="mapper.system"
|
|
targetProject="..\acupuncture-system\src\main\resources">
|
|
<!-- enableSubPackages:是否让schema作为包的后缀 -->
|
|
<property name="enableSubPackages" value="false"/>
|
|
</sqlMapGenerator>
|
|
|
|
<!-- targetPackage:mapper接口生成的位置 -->
|
|
<javaClientGenerator type="XMLMAPPER"
|
|
targetPackage="com.acupuncture.system.persist.mapper"
|
|
targetProject="..\acupuncture-system\src\main\java">
|
|
<!-- enableSubPackages:是否让schema作为包的后缀 -->
|
|
<property name="enableSubPackages" value="false"/>
|
|
</javaClientGenerator>
|
|
|
|
<table tableName="dms_tenant" domainObjectName="DmsTenant" enableDeleteByExample="false"/>
|
|
<!-- <table tableName="dms_user" domainObjectName="DmsUser" enableDeleteByExample="false"/>-->
|
|
<!-- <table tableName="fms_followup_queue" domainObjectName="FmsFollowupQueue" enableDeleteByExample="false"/>-->
|
|
<!-- <table tableName="fms_followup_task" domainObjectName="FmsFollowupTask" enableDeleteByExample="false"/>-->
|
|
<!-- <table tableName="fms_patient_queue_relation" domainObjectName="FmsPatientQueueRelation" enableDeleteByExample="false"/>-->
|
|
<!-- <table tableName="pms_patient" domainObjectName="PmsPatient" enableDeleteByExample="false"/>-->
|
|
<!-- <table tableName="pms_treatment" domainObjectName="PmsTreatment" enableDeleteByExample="false"/>-->
|
|
<!-- <table tableName="pms_treatment_record" domainObjectName="PmsTreatmentRecord" enableDeleteByExample="false"/>-->
|
|
<!-- <table tableName="rms_report_type" domainObjectName="RmsReportType" enableDeleteByExample="false"/>-->
|
|
<!-- <table tableName="rms_report_management" domainObjectName="RmsReportManagement" enableDeleteByExample="false"/>-->
|
|
<!-- <table tableName="ums_data_source" domainObjectName="UmsDataSource" enableDeleteByExample="false"/>-->
|
|
|
|
<!-- 有些表的字段需要指定java类型
|
|
<table schema="" tableName="">
|
|
<columnOverride column="" javaType="" />
|
|
</table> -->
|
|
</context>
|
|
</generatorConfiguration>
|
|
|