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.
75 lines
3.9 KiB
75 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="MySQL" targetRuntime="MyBatis3">
|
|
<!-- 为生成的Java模型创建一个toString方法 -->
|
|
<plugin type="org.mybatis.generator.plugins.ToStringPlugin"></plugin>
|
|
|
|
<!-- 自定义的序列化 类文件 插件 -->
|
|
<plugin type="org.mybatis.generator.plugins.SerializablePlugin"></plugin>
|
|
|
|
<!-- 重新生成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://49.233.89.188:3306/game?useUnicode=true&characterEncoding=UTF-8&tinyInt1isBit=false"
|
|
userId="root"
|
|
password="po3OynBO[M3579p6L7)o">
|
|
</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.ccsens.game.bean.po"
|
|
targetProject=".\src\main\java">
|
|
<!-- enableSubPackages:是否让schema作为包的后缀 -->
|
|
<property name="enableSubPackages" value="false" />
|
|
<!-- 从数据库返回的值被清理前后的空格 -->
|
|
<property name="trimStrings" value="true" />
|
|
</javaModelGenerator>
|
|
|
|
<!-- targetProject:mapper映射文件生成的位置 -->
|
|
<sqlMapGenerator targetPackage="mapper_raw"
|
|
targetProject=".\src\main\resources">
|
|
<!-- enableSubPackages:是否让schema作为包的后缀 -->
|
|
<property name="enableSubPackages" value="false" />
|
|
</sqlMapGenerator>
|
|
|
|
<!-- targetPackage:mapper接口生成的位置 -->
|
|
<javaClientGenerator type="XMLMAPPER"
|
|
targetPackage="com.ccsens.game.persist.mapper"
|
|
targetProject=".\src\main\java">
|
|
<!-- enableSubPackages:是否让schema作为包的后缀 -->
|
|
<property name="enableSubPackages" value="false" />
|
|
</javaClientGenerator>
|
|
<!-- <table tableName="t_game_type" domainObjectName="GameType"></table>-->
|
|
<!--<table tableName="t_game_user_pay" domainObjectName="GameUserPay"></table>-->
|
|
<table tableName="t_game_record" domainObjectName="GameRecord"></table>
|
|
<!-- <table tableName="t_game_user_join" domainObjectName="GameUserJoin"></table>-->
|
|
<!--<table tableName="t_game_score_log" domainObjectName="GameScoreLog"></table>-->
|
|
<!--<table tableName="t_game_activity_rule" domainObjectName="GameActivityRule"></table>-->
|
|
<!--<table tableName="t_game_activity_prize" domainObjectName="GameActivityPrize"></table>-->
|
|
<!--<table tableName="t_game_prize_instructions" domainObjectName="GamePrizeInstructions"></table>-->
|
|
<!-- <table tableName="t_game_user_join_group" domainObjectName="GameUserJoinGroup"></table>-->
|
|
<table tableName="t_game_group" domainObjectName="GameGroup"></table>
|
|
|
|
|
|
<!-- 有些表的字段需要指定java类型
|
|
<table schema="" tableName="">
|
|
<columnOverride column="" javaType="" />
|
|
</table> -->
|
|
</context>
|
|
</generatorConfiguration>
|