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.

64 lines
3.9 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.protocol.mapper.BaseMapper"/>
</plugin>
<!-- 连接字符串 -->
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://10.10.14.210:22066/icharge"
userId="icharge"
password="icharge">
</jdbcConnection>
<!-- 指定生成“entity实体类、mybatis映射xml文件、mapper接口”的具体位置 -->
<javaModelGenerator targetPackage="com.charge.protocol.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.protocol.dao.mybatis" targetProject="src/main/java" type="XMLMAPPER" >
<property name="enableSubPackages" value="true"/>
</javaClientGenerator>
<!--&lt;!&ndash; 具体要生成的表,如果有多个表,复制这一段,改下表名即可 &ndash;&gt;-->
<!--<table tableName="t_order" domainObjectName="OrderDO" 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_user_car" domainObjectName="UserCarDO" 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>-->
<!--&lt;!&ndash; 具体要生成的表,如果有多个表,复制这一段,改下表名即可 &ndash;&gt;-->
<!--<table tableName="t_connector" domainObjectName="ConnectorDO" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">-->
<!--<generatedKey column="id" sqlStatement="Mysql" identity="true"/>-->
<!--</table>-->
<!-- 具体要生成的表,如果有多个表,复制这一段,改下表名即可 -->
<!--<table tableName="t_equipment_pricing_rule_time" domainObjectName="EquipmentPricingRuleTimeDO" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">-->
<!--<generatedKey column="id" sqlStatement="Mysql" identity="true"/>-->
<!--</table>-->
</context>
</generatorConfiguration>