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.

52 lines
3.0 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="baseset" targetRuntime="MyBatis3Simple" defaultModelType="flat">
<!-- 根据Mapper生成实体类,xml文件 mvn mybatis-generator:generate -->
<plugin type="tk.mybatis.mapper.generator.MapperPlugin">
<property name="mappers" value="com.charge.task.mapper.BaseMapper"/>
</plugin>
<!-- 连接字符串 -->
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://10.10.14.210:22066/yltcharge"
userId="icharge"
password="icharge">
</jdbcConnection>
<!-- 指定生成“entity实体类、mybatis映射xml文件、mapper接口”的具体位置 -->
<javaModelGenerator targetPackage="com.charge.task.model" targetProject="src/main/java" >
<property name="enableSubPackages" value="true"/>
<property name="trimStrings" value="true"/>
</javaModelGenerator>
<sqlMapGenerator targetPackage="mappers" targetProject="src/main/resources" >
<property name="enableSubPackages" value="true"/>
</sqlMapGenerator>
<javaClientGenerator targetPackage="com.charge.task.dao" targetProject="src/main/java" type="XMLMAPPER" >
<property name="enableSubPackages" value="true"/>
</javaClientGenerator>
<!-- 具体要生成的表,如果有多个表,复制这一段,改下表名即可 -->
<table tableName="t_company_car_charge_report" domainObjectName="CompanyCarChargeReportDO" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
<generatedKey column="id" sqlStatement="Mysql" identity="true"/>
</table>
<!-- 具体要生成的表,如果有多个表,复制这一段,改下表名即可 -->
<!--<table tableName="t_equipment" domainObjectName="EquipmentDO" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">-->
<!--<generatedKey column="id" sqlStatement="Mysql" identity="true"/>-->
<!--</table>-->
<!--&lt;!&ndash; 具体要生成的表,如果有多个表,复制这一段,改下表名即可 &ndash;&gt;-->
<!--<table tableName="t_equipment" domainObjectName="EquipmentDO" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">-->
<!--<generatedKey column="id" sqlStatement="Mysql" identity="true"/>-->
<!--</table>-->
</context>
</generatorConfiguration>