|
@@ -1,39 +1,33 @@
|
|
|
<?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="MysqlTables" targetRuntime="MyBatis3Simple">
|
|
|
- <commentGenerator>
|
|
|
- <property name="suppressAllComments" value="true" />
|
|
|
- </commentGenerator>
|
|
|
- <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost:3306/trust" userId="root" password="mysql">
|
|
|
- </jdbcConnection>
|
|
|
- <javaTypeResolver>
|
|
|
- <property name="forceBigDecimals" value="false" />
|
|
|
- </javaTypeResolver>
|
|
|
- <javaModelGenerator targetPackage="com.yuanxd.trust.server.model" targetProject="src/main/java">
|
|
|
- <property name="enableSubPackages" value="true" />
|
|
|
- <property name="trimStrings" value="true" />
|
|
|
- </javaModelGenerator>
|
|
|
- <sqlMapGenerator targetPackage="com.yuanxd.trust.server.mappers" targetProject="src/main/resources">
|
|
|
- <property name="enableSubPackages" value="true" />
|
|
|
- </sqlMapGenerator>
|
|
|
- <javaClientGenerator type="XMLMAPPER" targetPackage="com.yuanxd.trust.server.mappers" targetProject="src/main/java">
|
|
|
- <property name="enableSubPackages" value="true" />
|
|
|
- <!-- <property name="rootInterface" value="com.yuanxd.trust.server.mappers.BaseMapper"/> -->
|
|
|
- </javaClientGenerator>
|
|
|
- <!-- <table tableName="t_user" domainObjectName="User"></table> -->
|
|
|
- <!-- <table tableName="t_org" domainObjectName="Org"></table> -->
|
|
|
- <!-- <table tableName="t_role" domainObjectName="Role"></table> -->
|
|
|
- <!-- <table tableName="t_user_role" domainObjectName="UserRoleMap"></table> -->
|
|
|
- <!-- <table tableName="t_group_button" domainObjectName="GroupButtonModel"></table>-->
|
|
|
- <!-- <table tableName="t_group_menu" domainObjectName="GroupMenuModel"></table> -->
|
|
|
- <!--<table tableName="t_user_menu" domainObjectName="UserMenu"></table> -->
|
|
|
- <!--<table tableName="t_user_button" domainObjectName="UserButton"></table> -->
|
|
|
- <!-- <table tableName="t_org_button" domainObjectName="OrgButton"></table> -->
|
|
|
- <!-- <table tableName="t_org_menu" domainObjectName="OrgMenu"></table> -->
|
|
|
- <!-- <table tableName="t_button" domainObjectName="Button"></table> -->
|
|
|
- <!-- <table tableName="t_menu" domainObjectName="Menu"></table> -->
|
|
|
- <!-- <table tableName="t_system" domainObjectName="System"></table> -->
|
|
|
- <!-- <table tableName="t_group" domainObjectName="GroupModel"></table>-->
|
|
|
- <table tableName="t_user_group" domainObjectName="UserGroupModel"></table>
|
|
|
- </context>
|
|
|
+ <context id="MysqlTables" targetRuntime="MyBatis3Simple">
|
|
|
+ <commentGenerator>
|
|
|
+ <property name="suppressAllComments" value="true" />
|
|
|
+ </commentGenerator>
|
|
|
+ <jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver"
|
|
|
+ connectionURL="jdbc:oracle:thin:@192.168.57.36:1521:orcl" userId="xtdsp"
|
|
|
+ password="xtdsp">
|
|
|
+ </jdbcConnection>
|
|
|
+ <javaTypeResolver>
|
|
|
+ <property name="forceBigDecimals" value="false" />
|
|
|
+ </javaTypeResolver>
|
|
|
+ <javaModelGenerator targetPackage="com.xt.dsp.model"
|
|
|
+ targetProject="src/main/java">
|
|
|
+ <property name="enableSubPackages" value="true" />
|
|
|
+ <property name="trimStrings" value="true" />
|
|
|
+ </javaModelGenerator>
|
|
|
+ <sqlMapGenerator targetPackage="com.xt.dsp.mappers"
|
|
|
+ targetProject="src/main/resources">
|
|
|
+ <property name="enableSubPackages" value="true" />
|
|
|
+ </sqlMapGenerator>
|
|
|
+ <javaClientGenerator type="XMLMAPPER"
|
|
|
+ targetPackage="com.xt.dsp.mappers" targetProject="src/main/java">
|
|
|
+ <property name="enableSubPackages" value="true" />
|
|
|
+ <!-- <property name="rootInterface" value="com.yuanxd.trust.server.mappers.BaseMapper"/> -->
|
|
|
+ </javaClientGenerator>
|
|
|
+ <!-- <table tableName="DSP_JOB" domainObjectName="JobBean"></table> -->
|
|
|
+ <!-- <table tableName="DSP_TASK" domainObjectName="TaskBean"></table> -->
|
|
|
+ <!-- <table tableName="DSP_TASK_SQL" domainObjectName="TaskSqlBean"></table> -->
|
|
|
+ <table tableName="DSP_DATASOURCE" domainObjectName="DataSourceBean"></table>
|
|
|
+ </context>
|
|
|
</generatorConfiguration>
|