<?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>
|
<!-- 数据库驱动:选择你的本地硬盘上面的数据库驱动包-->
|
<classPathEntry location="C:\Users\feiyu\.m2\repository\mysql\mysql-connector-java\5.1.46\mysql-connector-java-5.1.46.jar"/>
|
<!--defaultModelType{
|
conditional:这个模型与hierarchical模型相似,除了如果一个实体类只包含一个字段,则不会单独生成此实体类。因此,如果一个表的主键只有一个字段,那么不会为该字段生成单独的实体类,会将该字段合并到基本实体类中。
|
flat:该模型为每一张表只生成一个实体类。这个实体类包含表中的所有字段。
|
hierarchical:如果表有主键,那么该模型会产生一个单独的主键实体类,如果表还有BLOB字段,则会为表生成一个包含所有BLOB字段的单独的实体类,然后为所有其他的字段生成一个单独的实体类。MBG会在所有生成的实体类之间维护一个继承关系。
|
}-->
|
<context id="DB2Tables" defaultModelType="flat" targetRuntime="MyBatis3">
|
<!-- TKmybatis配置 -->
|
<property name="javaFileEncoding" value="UTF-8"/>
|
<property name="beginningDelimiter" value="`"/>
|
<property name="endingDelimiter" value="`"/>
|
<plugin type="${mapper.plugin}">
|
<property name="mappers" value="${mapper.Mapper}"/>
|
</plugin>
|
<commentGenerator>
|
<property name="suppressDate" value="true"/>
|
<!-- 是否去除自动生成的注释 true:是 : false:否 -->
|
<property name="suppressAllComments" value="true"/>
|
</commentGenerator>
|
<!--数据库链接URL,用户名、密码 -->
|
<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://47.100.191.150:3306/dronemonitor"
|
userId="remoteU1"
|
password="eSoF8DnzfGTlhAjE">
|
</jdbcConnection>
|
<javaTypeResolver>
|
<property name="forceBigDecimals" value="false"/>
|
</javaTypeResolver>
|
<!-- 生成模型的包名和位置-->
|
<javaModelGenerator targetPackage="com.flightfeather.uav.domain.entity" targetProject="src/main/kotlin">
|
<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.flightfeather.uav.domain.mapper" targetProject="src/main/kotlin">
|
<property name="enableSubPackages" value="true"/>
|
</javaClientGenerator>
|
<!-- 要生成的表 tableName是数据库中的表名或视图名 domainObjectName是实体类名-->
|
<!-- <table tableName="air_real_time_data" domainObjectName="RealTimeData" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"/>-->
|
<!-- <table tableName="mission" domainObjectName="Mission" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"/>-->
|
<!-- <table tableName="el_minutevalue" domainObjectName="ElectricMinuteValue" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"/>-->
|
<!-- <table tableName="el_company_device" domainObjectName="CompanyDevice" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"/>-->
|
<!-- <table tableName="co_complaint" domainObjectName="Complaint" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"/>-->
|
<table tableName="co_assessment" domainObjectName="Assessment" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"/>
|
</context>
|
</generatorConfiguration>
|