123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <?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>
- <!--mysql 连接数据库jar 这里选择自己本地位置-->
- <!-- <classPathEntry location="./lib/postgresql-42.3.4.jar"/>-->
- <classPathEntry location=".\lib\mysql-connector-java-5.1.46.jar"/>
- <context id="testTables" targetRuntime="MyBatis3">
- <!-- 运行环境配置 -->
- <!--<plugin type="org.mybatis.generator.plugins.SerializablePlugin"></plugin>-->
- <commentGenerator>
- <!-- 是否去除自动生成的注释 true:是 : false:否 -->
- <property name="suppressAllComments" value="true"/>
- <!-- 数据库注释支持 -->
- <property name="addRemarkComments" value="true"/>
- <!-- 时间格式设置 -->
- <property name="dateFormat" value="yyyy-MM-dd HH:mm:ss"/>
- </commentGenerator>
- <!--数据库连接的信息:驱动类、连接地址、用户名、密码 -->
- <jdbcConnection driverClass="com.mysql.jdbc.Driver"
- connectionURL="jdbc:mysql://office.bowintek.com:3306/smartSearchDB?useSSL=false" userId="root"
- password="bowin123"/>
- <!-- <jdbcConnection driverClass="org.postgresql.Driver"
- connectionURL="jdbc:postgresql://office.bowintek.com:5432/postgres"
- userId="postgres"
- password="bowin123">
- </jdbcConnection>-->
- <!-- 默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer,为 true时把JDBC DECIMAL 和
- NUMERIC 类型解析为java.math.BigDecimal -->
- <javaTypeResolver>
- <property name="forceBigDecimals" value="false"/>
- </javaTypeResolver>
- <!-- targetProject:生成PO类的位置 -->
- <javaModelGenerator targetPackage="com.bowintek.practice.model"
- targetProject="src/main/java">
- <!-- enableSubPackages:是否让schema作为包的后缀 -->
- <property name="enableSubPackages" value="false"/>
- <!-- 从数据库返回的值被清理前后的空格 -->
- <property name="trimStrings" value="true"/>
- </javaModelGenerator>
- <!-- targetProject:mapper映射文件生成的位置
- 如果maven工程只是单独的一个工程,targetProject="src/main/java"
- 若果maven工程是分模块的工程,targetProject="所属模块的名称",例如:
- targetProject="ecps-manager-mapper",下同-->
- <sqlMapGenerator targetPackage="mapping"
- targetProject="src/main/resources">
- <!-- enableSubPackages:是否让schema作为包的后缀 -->
- <property name="enableSubPackages" value="false"/>
- </sqlMapGenerator>
- <!-- targetPackage:mapper接口生成的位置 -->
- <javaClientGenerator type="XMLMAPPER"
- targetPackage="com.bowintek.practice.mapper"
- targetProject="src/main/java">
- <!-- enableSubPackages:是否让schema作为包的后缀 -->
- <property name="enableSubPackages" value="false"/>
- </javaClientGenerator>
- <!-- 指定数据库表 -->
- <!--<table schema="" tableName="cf_college"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="cf_major"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="cf_major_class"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="cf_major_grade"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="cf_schoolyear"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="sys_announcement"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="sys_announcement_sys_role"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="sys_announcement_sys_user"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="sys_dictionary"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="sys_dictionary_item"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="sys_function_code"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="sys_menu"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="sys_role"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="sys_role_datarange"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="sys_role_sys_function_code"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="sys_user"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="sys_user_cf_college"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="sys_user_cf_major"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="sys_user_cf_major_class"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="sys_user_cf_major_grade"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="sys_user_datarange"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="sys_user_sys_role"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="pl_practice_plan"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="pl_practice_plan_major"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="pr_daily_report">
- <table schema="" tableName="cf_device"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="pl_practice_plan_major"><property name="useActualColumnNames" value="true"/></table><table schema="" tableName="pr_daily_report">
- <property name="useActualColumnNames" value="true"/>
- <columnOverride column="Content" javaType="java.lang.String" jdbcType="VARCHAR" />
- <columnOverride column="Comment" javaType="java.lang.String" jdbcType="VARCHAR" />
- </table>
- <table schema="" tableName="pr_weekly_report">
- <property name="useActualColumnNames" value="true"/>
- <columnOverride column="Content" javaType="java.lang.String" jdbcType="VARCHAR" />
- <columnOverride column="Comment" javaType="java.lang.String" jdbcType="VARCHAR" />
- </table>
- <table schema="" tableName="pr_monthly_report">
- <property name="useActualColumnNames" value="true"/>
- <columnOverride column="Content" javaType="java.lang.String" jdbcType="VARCHAR" />
- <columnOverride column="Comment" javaType="java.lang.String" jdbcType="VARCHAR" />
- </table>
- <table schema="" tableName="pr_practice_report">
- <property name="useActualColumnNames" value="true"/>
- <columnOverride column="Content" javaType="java.lang.String" jdbcType="VARCHAR" />
- <columnOverride column="Comment" javaType="java.lang.String" jdbcType="VARCHAR" />
- <columnOverride column="CompanyComment" javaType="java.lang.String" jdbcType="VARCHAR" />
- </table>
- -->
- <!--<table schema="" tableName="cf_position"><property name="useActualColumnNames" value="true"/>
- <columnOverride column="Remark" javaType="java.lang.String" jdbcType="VARCHAR" />
- </table>
- -->
- <!-- <table schema="" tableName="sys_announcement"><property name="useActualColumnNames" value="true"/>-->
- <!-- <columnOverride column="content" javaType="java.lang.String" jdbcType="VARCHAR" />-->
- <!-- </table>-->
- <!--<table schema="" tableName="cf_major"><property name="useActualColumnNames" value="true"/>
- <columnOverride column="StandardMajorID" javaType="java.lang.Integer" jdbcType="INTEGER" />
- <table schema="" tableName="Sys_Log"><property name="useActualColumnNames" value="true"/></table>
- </table>-->
- <table schema="" tableName="es_index"><property name="useActualColumnNames" value="true"/></table>
- <table schema="" tableName="es_indexField"><property name="useActualColumnNames" value="true"/></table>
- </context>
- </generatorConfiguration>
|