eclipse下mybatis自动生成

来源:互联网 发布:js获取当前日期 函数 编辑:程序博客网 时间:2024/06/01 22:49
<?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:\mysql-connector-java-5.1.25-bin.jar"/>    <context id="context1">    <jdbcConnection connectionURL="jdbc:mysql://localhost:3306/mydays" driverClass="com.mysql.jdbc.Driver" password="" userId="root" />    <javaModelGenerator targetPackage="cn.spring.mvc.service.impl" targetProject="Role.of.springmvc" />    <sqlMapGenerator targetPackage="cn.spring.mvc.model" targetProject="Role.of.springmvc" />    <javaClientGenerator targetPackage="mapper" targetProject="Role.of.springmvc" type="XMLMAPPER" />        <table tableName="department" domainObjectName="Department" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>        <table tableName="empl_depart" domainObjectName="Empl_depart" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>        <table tableName="empl_role" domainObjectName="Empl_role" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>        <table tableName="employee" domainObjectName="Employee" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>        <table tableName="functions" domainObjectName="Functions" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>        <table tableName="role_func" domainObjectName="Role_func" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>        <table tableName="roles" domainObjectName="Roles" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>        <table tableName="user" domainObjectName="User" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>        <table tableName="user_empl" domainObjectName="User_empl" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>        <table tableName="users" domainObjectName="Users" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>  </context></generatorConfiguration>

0 0
原创粉丝点击