删除generatorConfig.xml,此为临时文件,可生成

This commit is contained in:
shuzheng 2017-02-04 17:55:51 +08:00
parent ed15a6f255
commit 349a3df56e
6 changed files with 2 additions and 355 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ target
*.log *.log
*.log.* *.log.*
**/resources/zheng-admin **/resources/zheng-admin
generatorConfig.xml

View File

@ -1,76 +0,0 @@
<?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>
<!-- 配置文件 -->
<properties resource="jdbc.properties"></properties>
<context id="MysqlContext" targetRuntime="MyBatis3" defaultModelType="flat">
<property name="javaFileEncoding" value="UTF-8"/>
<!-- 由于beginningDelimiter和endingDelimiter的默认值为双引号(")在Mysql中不能这么写所以还要将这两个默认值改为` -->
<property name="beginningDelimiter" value="`"/>
<property name="endingDelimiter" value="`"/>
<!-- 为生成的Java模型创建一个toString方法 -->
<plugin type="org.mybatis.generator.plugins.ToStringPlugin"></plugin>
<!-- 为生成的Java模型类添加序列化接口并生成serialVersionUID字段 -->
<plugin type="com.zheng.common.plugin.SerializablePlugin">
<property name="suppressJavaInterface" value="false"/>
</plugin>
<!-- 生成一个新的selectByExample方法这个方法可以接收offset和limit参数主要用来实现分页 -->
<plugin type="com.zheng.common.plugin.PaginationPlugin"></plugin>
<!-- 生成在XML中的<cache>元素 -->
<plugin type="org.mybatis.generator.plugins.CachePlugin">
<!-- 使用ehcache -->
<property name="cache_type" value="org.mybatis.caches.ehcache.LoggingEhcache" />
<!-- 内置cache配置 -->
<!--
<property name="cache_eviction" value="LRU" />
<property name="cache_flushInterval" value="60000" />
<property name="cache_readOnly" value="true" />
<property name="cache_size" value="1024" />
-->
</plugin>
<!-- Java模型生成equals和hashcode方法 -->
<plugin type="org.mybatis.generator.plugins.EqualsHashCodePlugin"></plugin>
<!-- 生成的代码去掉注释 -->
<commentGenerator type="com.zheng.common.plugin.CommentGenerator">
<property name="suppressAllComments" value="true" />
<property name="suppressDate" value="true"/>
</commentGenerator>
<!-- 数据库连接 -->
<jdbcConnection driverClass="${master.jdbc.driver}"
connectionURL="${master.jdbc.url}"
userId="${master.jdbc.username}"
password="${master.jdbc.password}" />
<!-- model生成 -->
<javaModelGenerator targetPackage="com.zheng.cms.dao.model" targetProject="zheng-cms/zheng-cms-dao/src/main/java" />
<!-- MapperXML生成 -->
<sqlMapGenerator targetPackage="com.zheng.cms.dao.mapper" targetProject="zheng-cms/zheng-cms-dao/src/main/java" />
<!-- Mapper接口生成 -->
<javaClientGenerator targetPackage="com.zheng.cms.dao.mapper" targetProject="zheng-cms/zheng-cms-dao/src/main/java" type="XMLMAPPER" />
<!-- 需要映射的表 -->
<table tableName="cms_article" domainObjectName="CmsArticle"></table>
<table tableName="cms_article_category" domainObjectName="CmsArticleCategory"></table>
<table tableName="cms_article_tag" domainObjectName="CmsArticleTag"></table>
<table tableName="cms_book" domainObjectName="CmsBook"></table>
<table tableName="cms_category" domainObjectName="CmsCategory"></table>
<table tableName="cms_category_tag" domainObjectName="CmsCategoryTag"></table>
<table tableName="cms_comment" domainObjectName="CmsComment"></table>
<table tableName="cms_page" domainObjectName="CmsPage"></table>
<table tableName="cms_setting" domainObjectName="CmsSetting"></table>
<table tableName="cms_tag" domainObjectName="CmsTag"></table>
<table tableName="cms_user" domainObjectName="CmsUser"></table>
</context>
</generatorConfiguration>

View File

@ -1,74 +0,0 @@
<?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>
<!-- 配置文件 -->
<properties resource="jdbc.properties"></properties>
<context id="MysqlContext" targetRuntime="MyBatis3" defaultModelType="flat">
<property name="javaFileEncoding" value="UTF-8"/>
<!-- 由于beginningDelimiter和endingDelimiter的默认值为双引号(")在Mysql中不能这么写所以还要将这两个默认值改为` -->
<property name="beginningDelimiter" value="`"/>
<property name="endingDelimiter" value="`"/>
<!-- 为生成的Java模型创建一个toString方法 -->
<plugin type="org.mybatis.generator.plugins.ToStringPlugin"></plugin>
<!-- 为生成的Java模型类添加序列化接口并生成serialVersionUID字段 -->
<plugin type="com.zheng.common.plugin.SerializablePlugin">
<property name="suppressJavaInterface" value="false"/>
</plugin>
<!-- 生成一个新的selectByExample方法这个方法可以接收offset和limit参数主要用来实现分页 -->
<plugin type="com.zheng.common.plugin.PaginationPlugin"></plugin>
<!-- 生成在XML中的<cache>元素 -->
<plugin type="org.mybatis.generator.plugins.CachePlugin">
<!-- 使用ehcache -->
<property name="cache_type" value="org.mybatis.caches.ehcache.LoggingEhcache" />
<!-- 内置cache配置 -->
<!--
<property name="cache_eviction" value="LRU" />
<property name="cache_flushInterval" value="60000" />
<property name="cache_readOnly" value="true" />
<property name="cache_size" value="1024" />
-->
</plugin>
<!-- Java模型生成equals和hashcode方法 -->
<plugin type="org.mybatis.generator.plugins.EqualsHashCodePlugin"></plugin>
<!-- 生成的代码去掉注释 -->
<commentGenerator type="com.zheng.common.plugin.CommentGenerator">
<property name="suppressAllComments" value="true" />
<property name="suppressDate" value="true"/>
</commentGenerator>
<!-- 数据库连接 -->
<jdbcConnection driverClass="${master.jdbc.driver}"
connectionURL="${master.jdbc.url}"
userId="${master.jdbc.username}"
password="${master.jdbc.password}" />
<!-- model生成 -->
<javaModelGenerator targetPackage="com.zheng.pay.dao.model" targetProject="zheng-pay/zheng-pay-dao/src/main/java" />
<!-- MapperXML生成 -->
<sqlMapGenerator targetPackage="com.zheng.pay.dao.mapper" targetProject="zheng-pay/zheng-pay-dao/src/main/java" />
<!-- Mapper接口生成 -->
<javaClientGenerator targetPackage="com.zheng.pay.dao.mapper" targetProject="zheng-pay/zheng-pay-dao/src/main/java" type="XMLMAPPER" />
<!-- 需要映射的表 -->
<table tableName="pay_in_order" domainObjectName="PayInOrder"></table>
<table tableName="pay_in_order_detail" domainObjectName="PayInOrderDetail"></table>
<table tableName="pay_mch" domainObjectName="PayMch"></table>
<table tableName="pay_out_order" domainObjectName="PayOutOrder"></table>
<table tableName="pay_out_order_detail" domainObjectName="PayOutOrderDetail"></table>
<table tableName="pay_pay" domainObjectName="PayPay"></table>
<table tableName="pay_type" domainObjectName="PayType"></table>
<table tableName="pay_vendor" domainObjectName="PayVendor"></table>
<table tableName="pay_vest" domainObjectName="PayVest"></table>
</context>
</generatorConfiguration>

View File

@ -1,65 +0,0 @@
<?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>
<!-- 配置文件 -->
<properties resource="jdbc.properties"></properties>
<context id="MysqlContext" targetRuntime="MyBatis3" defaultModelType="flat">
<property name="javaFileEncoding" value="UTF-8"/>
<!-- 由于beginningDelimiter和endingDelimiter的默认值为双引号(")在Mysql中不能这么写所以还要将这两个默认值改为` -->
<property name="beginningDelimiter" value="`"/>
<property name="endingDelimiter" value="`"/>
<!-- 为生成的Java模型创建一个toString方法 -->
<plugin type="org.mybatis.generator.plugins.ToStringPlugin"></plugin>
<!-- 为生成的Java模型类添加序列化接口并生成serialVersionUID字段 -->
<plugin type="com.zheng.common.plugin.SerializablePlugin">
<property name="suppressJavaInterface" value="false"/>
</plugin>
<!-- 生成一个新的selectByExample方法这个方法可以接收offset和limit参数主要用来实现分页 -->
<plugin type="com.zheng.common.plugin.PaginationPlugin"></plugin>
<!-- 生成在XML中的<cache>元素 -->
<plugin type="org.mybatis.generator.plugins.CachePlugin">
<!-- 使用ehcache -->
<property name="cache_type" value="org.mybatis.caches.ehcache.LoggingEhcache" />
<!-- 内置cache配置 -->
<!--
<property name="cache_eviction" value="LRU" />
<property name="cache_flushInterval" value="60000" />
<property name="cache_readOnly" value="true" />
<property name="cache_size" value="1024" />
-->
</plugin>
<!-- Java模型生成equals和hashcode方法 -->
<plugin type="org.mybatis.generator.plugins.EqualsHashCodePlugin"></plugin>
<!-- 生成的代码去掉注释 -->
<commentGenerator type="com.zheng.common.plugin.CommentGenerator">
<property name="suppressAllComments" value="true" />
<property name="suppressDate" value="true"/>
</commentGenerator>
<!-- 数据库连接 -->
<jdbcConnection driverClass="${master.jdbc.driver}"
connectionURL="${master.jdbc.url}"
userId="${master.jdbc.username}"
password="${master.jdbc.password}" />
<!-- model生成 -->
<javaModelGenerator targetPackage="com.zheng.ucenter.dao.model" targetProject="zheng-ucenter/zheng-ucenter-dao/src/main/java" />
<!-- MapperXML生成 -->
<sqlMapGenerator targetPackage="com.zheng.ucenter.dao.mapper" targetProject="zheng-ucenter/zheng-ucenter-dao/src/main/java" />
<!-- Mapper接口生成 -->
<javaClientGenerator targetPackage="com.zheng.ucenter.dao.mapper" targetProject="zheng-ucenter/zheng-ucenter-dao/src/main/java" type="XMLMAPPER" />
<!-- 需要映射的表 -->
</context>
</generatorConfiguration>

View File

@ -1,74 +0,0 @@
<?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>
<!-- 配置文件 -->
<properties resource="jdbc.properties"></properties>
<context id="MysqlContext" targetRuntime="MyBatis3" defaultModelType="flat">
<property name="javaFileEncoding" value="UTF-8"/>
<!-- 由于beginningDelimiter和endingDelimiter的默认值为双引号(")在Mysql中不能这么写所以还要将这两个默认值改为` -->
<property name="beginningDelimiter" value="`"/>
<property name="endingDelimiter" value="`"/>
<!-- 为生成的Java模型创建一个toString方法 -->
<plugin type="org.mybatis.generator.plugins.ToStringPlugin"></plugin>
<!-- 为生成的Java模型类添加序列化接口并生成serialVersionUID字段 -->
<plugin type="com.zheng.common.plugin.SerializablePlugin">
<property name="suppressJavaInterface" value="false"/>
</plugin>
<!-- 生成一个新的selectByExample方法这个方法可以接收offset和limit参数主要用来实现分页 -->
<plugin type="com.zheng.common.plugin.PaginationPlugin"></plugin>
<!-- 生成在XML中的<cache>元素 -->
<plugin type="org.mybatis.generator.plugins.CachePlugin">
<!-- 使用ehcache -->
<property name="cache_type" value="org.mybatis.caches.ehcache.LoggingEhcache" />
<!-- 内置cache配置 -->
<!--
<property name="cache_eviction" value="LRU" />
<property name="cache_flushInterval" value="60000" />
<property name="cache_readOnly" value="true" />
<property name="cache_size" value="1024" />
-->
</plugin>
<!-- Java模型生成equals和hashcode方法 -->
<plugin type="org.mybatis.generator.plugins.EqualsHashCodePlugin"></plugin>
<!-- 生成的代码去掉注释 -->
<commentGenerator type="com.zheng.common.plugin.CommentGenerator">
<property name="suppressAllComments" value="true" />
<property name="suppressDate" value="true"/>
</commentGenerator>
<!-- 数据库连接 -->
<jdbcConnection driverClass="${master.jdbc.driver}"
connectionURL="${master.jdbc.url}"
userId="${master.jdbc.username}"
password="${master.jdbc.password}" />
<!-- model生成 -->
<javaModelGenerator targetPackage="com.zheng.upms.dao.model" targetProject="zheng-upms/zheng-upms-dao/src/main/java" />
<!-- MapperXML生成 -->
<sqlMapGenerator targetPackage="com.zheng.upms.dao.mapper" targetProject="zheng-upms/zheng-upms-dao/src/main/java" />
<!-- Mapper接口生成 -->
<javaClientGenerator targetPackage="com.zheng.upms.dao.mapper" targetProject="zheng-upms/zheng-upms-dao/src/main/java" type="XMLMAPPER" />
<!-- 需要映射的表 -->
<table tableName="upms_organization" domainObjectName="UpmsOrganization"></table>
<table tableName="upms_permission" domainObjectName="UpmsPermission"></table>
<table tableName="upms_role" domainObjectName="UpmsRole"></table>
<table tableName="upms_role_permission" domainObjectName="UpmsRolePermission"></table>
<table tableName="upms_system" domainObjectName="UpmsSystem"></table>
<table tableName="upms_user" domainObjectName="UpmsUser"></table>
<table tableName="upms_user_organization" domainObjectName="UpmsUserOrganization"></table>
<table tableName="upms_user_permission" domainObjectName="UpmsUserPermission"></table>
<table tableName="upms_user_role" domainObjectName="UpmsUserRole"></table>
</context>
</generatorConfiguration>

View File

@ -1,65 +0,0 @@
<?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>
<!-- 配置文件 -->
<properties resource="jdbc.properties"></properties>
<context id="MysqlContext" targetRuntime="MyBatis3" defaultModelType="flat">
<property name="javaFileEncoding" value="UTF-8"/>
<!-- 由于beginningDelimiter和endingDelimiter的默认值为双引号(")在Mysql中不能这么写所以还要将这两个默认值改为` -->
<property name="beginningDelimiter" value="`"/>
<property name="endingDelimiter" value="`"/>
<!-- 为生成的Java模型创建一个toString方法 -->
<plugin type="org.mybatis.generator.plugins.ToStringPlugin"></plugin>
<!-- 为生成的Java模型类添加序列化接口并生成serialVersionUID字段 -->
<plugin type="com.zheng.common.plugin.SerializablePlugin">
<property name="suppressJavaInterface" value="false"/>
</plugin>
<!-- 生成一个新的selectByExample方法这个方法可以接收offset和limit参数主要用来实现分页 -->
<plugin type="com.zheng.common.plugin.PaginationPlugin"></plugin>
<!-- 生成在XML中的<cache>元素 -->
<plugin type="org.mybatis.generator.plugins.CachePlugin">
<!-- 使用ehcache -->
<property name="cache_type" value="org.mybatis.caches.ehcache.LoggingEhcache" />
<!-- 内置cache配置 -->
<!--
<property name="cache_eviction" value="LRU" />
<property name="cache_flushInterval" value="60000" />
<property name="cache_readOnly" value="true" />
<property name="cache_size" value="1024" />
-->
</plugin>
<!-- Java模型生成equals和hashcode方法 -->
<plugin type="org.mybatis.generator.plugins.EqualsHashCodePlugin"></plugin>
<!-- 生成的代码去掉注释 -->
<commentGenerator type="com.zheng.common.plugin.CommentGenerator">
<property name="suppressAllComments" value="true" />
<property name="suppressDate" value="true"/>
</commentGenerator>
<!-- 数据库连接 -->
<jdbcConnection driverClass="${master.jdbc.driver}"
connectionURL="${master.jdbc.url}"
userId="${master.jdbc.username}"
password="${master.jdbc.password}" />
<!-- model生成 -->
<javaModelGenerator targetPackage="com.zheng.wechat.mp.dao.model" targetProject="zheng-wechat-mp/zheng-wechat-mp-dao/src/main/java" />
<!-- MapperXML生成 -->
<sqlMapGenerator targetPackage="com.zheng.wechat.mp.dao.mapper" targetProject="zheng-wechat-mp/zheng-wechat-mp-dao/src/main/java" />
<!-- Mapper接口生成 -->
<javaClientGenerator targetPackage="com.zheng.wechat.mp.dao.mapper" targetProject="zheng-wechat-mp/zheng-wechat-mp-dao/src/main/java" type="XMLMAPPER" />
<!-- 需要映射的表 -->
</context>
</generatorConfiguration>