<?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>  
<!-- 数据库驱动-->  
    <classPathEntry  location="D:\mybatis-generator\mysql-connector-java-5.1.30.jar"/>  
    <context id="DB2Tables"  targetRuntime="MyBatis3">  
        <commentGenerator>  
            <property name="suppressDate" value="true"/>  
            <!-- 是否去除自动生成的注释 true：是 ： false:否 -->  
            <property name="suppressAllComments" value="true"/>  
        </commentGenerator>  
        <!--数据库链接URL，用户名、密码 -->  
        <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://127.0.0.1:3306/onlineexam_system" userId="root" password="123456">  
        </jdbcConnection>  
        <javaTypeResolver>  
            <property name="forceBigDecimals" value="false"/>  
        </javaTypeResolver>  
        <!-- 生成模型的包名和位置-->  
        <javaModelGenerator targetPackage="com.mwt.oes.domain" targetProject="D:\onlineexam-system-backend\src\main\java">  
            <property name="enableSubPackages" value="true"/>  
            <property name="trimStrings" value="true"/>  
        </javaModelGenerator>  
        <!-- 生成映射文件的包名和位置-->  
        <sqlMapGenerator targetPackage="mapper" targetProject="D:\onlineexam-system-backend\src\main\resources">  
            <property name="enableSubPackages" value="true"/>  
        </sqlMapGenerator>  
        <!-- 生成DAO的包名和位置-->  
        <javaClientGenerator type="XMLMAPPER" targetPackage="com.mwt.oes.dao" targetProject="D:\onlineexam-system-backend\src\main\java">  
            <property name="enableSubPackages" value="true"/>  
        </javaClientGenerator>  
        <!-- 要生成的表 tableName是数据库中的表名或视图名 domainObjectName是实体类名-->  
        <table tableName="admin" domainObjectName="Admin"></table>
        <table tableName="bank_fill_que" domainObjectName="BankFillQue"></table>
		<table tableName="bank_judge_que" domainObjectName="BankJudgeQue"></table>
		<table tableName="bank_multiple_choice_que" domainObjectName="BankMultipleChoiceQue"></table>
		<table tableName="bank_single_choice_que" domainObjectName="BankSingleChoiceQue"></table>
		<table tableName="paper" domainObjectName="Paper"></table>
		<table tableName="paper_que" domainObjectName="PaperQue"></table>
		<table tableName="programing_language" domainObjectName="ProgramingLanguage"></table>
		<table tableName="student" domainObjectName="Student"></table>
		<table tableName="student_feedback" domainObjectName="StudentFeedback"></table>
		<table tableName="student_home_rotation_img" domainObjectName="StudentHomeRotationImg"></table>
		<table tableName="student_paper_answer" domainObjectName="StudentPaperAnswer"></table>
		<table tableName="student_paper_score" domainObjectName="StudentPaperScore"></table>
		<table tableName="teacher" domainObjectName="Teacher"></table>
		<table tableName="teacher_notice" domainObjectName="TeacherNotice"></table>
    </context>  
</generatorConfiguration>  