|
|
<?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="DB2Tables" targetRuntime="MyBatis3">
|
|
|
<!-- <commentGenerator>-->
|
|
|
<!-- <property name="suppressAllComments" value="true"/>-->
|
|
|
<!-- </commentGenerator>-->
|
|
|
<!-- type值为自定义的MyCommentGenerator-->
|
|
|
<commentGenerator type="com.sztzjy.fund_investment.util.MyCommentGenerator">
|
|
|
<!-- 是否去除自动生成的注释 true:是 : false:否 -->
|
|
|
<property name="suppressAllComments" value="false"/>
|
|
|
<property name="suppressDate" value="false"/>
|
|
|
<!-- 是否添加数据表中字段的注释 true:是 : false:否 -->
|
|
|
<property name="addRemarkComments" value="true"/>
|
|
|
</commentGenerator>
|
|
|
|
|
|
<!-- 配置数据库连接信息 -->
|
|
|
<jdbcConnection driverClass="com.mysql.cj.jdbc.Driver" connectionURL="jdbc:mysql://118.31.7.2:3306/fund_investment" userId="root" password="sztzjy2017">
|
|
|
<property name="useInformationSchema" value="true"/> <!--useInformationSchema 实体类上添加数据表的注释 -->
|
|
|
</jdbcConnection>
|
|
|
<!-- 配置实体类的位置 -->
|
|
|
<javaModelGenerator targetPackage="com.sztzjy.fund_investment.entity" targetProject="src/main/java">
|
|
|
<!-- 生成的Java模型是否支持序列化 -->
|
|
|
<property name="enableSubPackages" value="true" />
|
|
|
<property name="trimStrings" value="true" />
|
|
|
</javaModelGenerator>
|
|
|
|
|
|
<!-- 配置Mapper XML文件的位置-->
|
|
|
<sqlMapGenerator targetPackage="mappers" targetProject="src/main/resources">
|
|
|
<property name="enableSubPackages" value="true" />
|
|
|
</sqlMapGenerator>
|
|
|
|
|
|
<!-- 配置Mapper接口的位置 -->
|
|
|
<javaClientGenerator type="XMLMAPPER" targetPackage="com.sztzjy.fund_investment.mapper" targetProject="src/main/java">
|
|
|
<property name="enableSubPackages" value="true" />
|
|
|
</javaClientGenerator>
|
|
|
|
|
|
<!-- 需要生成的表 -->
|
|
|
<table tableName="allotment_object" domainObjectName="AllotmentObject" />
|
|
|
<!-- <table tableName="flow" domainObjectName="Flow" />-->
|
|
|
<!-- <table tableName="fundraising" domainObjectName="Fundraising" />-->
|
|
|
<!-- <table tableName="inquiry_participation" domainObjectName="InquiryParticipation" />-->
|
|
|
<!-- <table tableName="issuance_info" domainObjectName="IssuanceInfo" />-->
|
|
|
<!-- <table tableName="issuance_parameter_input" domainObjectName="IssuanceParameterInput" />-->
|
|
|
<!-- <table tableName="performance_score" domainObjectName="PerformanceScore" />-->
|
|
|
<!-- <table tableName="tea_class_score" domainObjectName="TeaClassScore" />-->
|
|
|
<!-- <table tableName="profit_distribution" domainObjectName="ProfitDistribution" />-->
|
|
|
<!-- <table tableName="profit_management" domainObjectName="ProfitManagement" />-->
|
|
|
<!-- <table tableName="question_answer" domainObjectName="QuestionAnswer" />-->
|
|
|
<!-- <table tableName="sys_topics" domainObjectName="Topics" />-->
|
|
|
<!-- <table tableName="topic_record" domainObjectName="TopicRecord" />-->
|
|
|
<!-- <table tableName="found_project" domainObjectName="FoundProject" />-->
|
|
|
<!-- <table tableName="training_report" domainObjectName="TrainingReport" />-->
|
|
|
<!-- <table tableName="user_table" domainObjectName="UserTable" />-->
|
|
|
</context>
|
|
|
|
|
|
|
|
|
</generatorConfiguration> |