MYBATIS3 Database Automation Mapping configuration file

Source: Internet
Author: User
Tags generator

First step to install the Eclipse plugin


The second step, the configuration file is as follows

<?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 ">

<!--use eclipse to install generator plug-ins to automatically insinuate, reduce code error rates, and strictly follow Sun's Java code specifications--

<generatorConfiguration>

<!--MySQL database connection jar--

<classpathentry

location= "D:/apache-tomcat-6.0.44_sso/lib/mysql-connector-java-5.0.8-bin.jar"/>

<context id= "Context1" >

<commentGenerator>

<property name= "Suppressdate" value= "true"/>

<property name= "Suppressallcomments" value= "true"/>

</commentGenerator>

<!--MySQL database connection address, user name, password---

<jdbcconnection driverclass= "Com.mysql.jdbc.Driver"

Connectionurl= "Jdbc:mysql://192.168.31.184:3306/gjmj_product" userid= "root"

password= "GJMJ"/>


<javamodelgenerator targetpackage= "Com.gjmj.mybatisMapper.entity"

targetproject= "Mybatismapper"/>

<sqlmapgenerator targetpackage= "Com.gjmj.mybatisMapper.mapper"

targetproject= "Mybatismapper"/>

<javaclientgenerator targetpackage= "Com.gjmj.mybatisMapper.client"

targetproject= "Mybatismapper" type= "Xmlmapper"/>

<!--requires an ORM mapping table and the corresponding entity name--

<table tablename= "T_assemble_package" domainobjectname= "Assemblepackage"

Enablecountbyexample= "false" enableupdatebyexample= "false"

Enabledeletebyexample= "false" enableselectbyexample= "false"

Selectbyexamplequeryid= "false" >

</table>

<table tablename= "T_assemble_packagen" domainobjectname= "Assemblepackagen"

Enablecountbyexample= "false" enableupdatebyexample= "false"

Enabledeletebyexample= "false" enableselectbyexample= "false"

Selectbyexamplequeryid= "false" >

</table>

<table tablename= "t_base_att_type_classify" Domainobjectname= "Basea Tttypeclassify "

Enablecountbyexample= "false" enableupdatebyexample= "false"

Enabledeletebyexample= "false" enableselectbyexample= "false"

Selectbyexamplequeryid= "false" >

</table>

<table tablename= "T_base_attribute" domainobjectname= "Baseattribute"

Enablecountbyexample= "false" enableupdatebyexample= "false"

Enabledeletebyexample= "false" enableselectbyexample= "false"

Selectbyexamplequeryid= "false" >

</table>

<table tablename= "t_base_attribute_mould" Domainobjectname= "Ba Seattributemould "

Enablecountbyexample= "false" enableupdatebyexample= "false"

Enabledeletebyexample= "false" enableselectbyexample= "false"

Selectbyexamplequeryid= "false" >

</table>

<table tablename= "T_base_attribute_type" Domainobjectname= "Bas Eattributetype "

Enablecountbyexample= "false" enableupdatebyexample= "false"

Enabledeletebyexample= "false" enableselectbyexample= "false"

Selectbyexamplequeryid= "false" >

</table>

<table tablename= "T_base_brand" domainobjectname= "Basebrand"

Enablecountbyexample= "false" enableupdatebyexample= "false"

Enabledeletebyexample= "false" enableselectbyexample= "false"

Selectbyexamplequeryid= "false" >

</table>

<table tablename= "t_base_classify" domainobjectname= "Baseclassify"

Enablecountbyexample= "false" enableupdatebyexample= "false"

Enabledeletebyexample= "false" enableselectbyexample= "false"

Selectbyexamplequeryid= "false" >

</table>

<table tablename= "T_base_classify_brand" Domainobjectname= "Bas Eclassifybrand "

Enablecountbyexample= "false" enableupdatebyexample= "false"

Enabledeletebyexample= "false" enableselectbyexample= "false"

Selectbyexamplequeryid= "false" >

</table>

<table tablename= "T_base_mould_attribute" Domainobjectname= "Ba Semouldattribute "

Enablecountbyexample= "false" enableupdatebyexample= "false"

Enabledeletebyexample= "false" enableselectbyexample= "false"

Selectbyexamplequeryid= "false" >

</table>

<table tablename= "T_base_mould_query" domainobjectname= "Basemouldquery"

Enablecountbyexample= "false" enableupdatebyexample= "false"

Enabledeletebyexample= "false" enableselectbyexample= "false"

Selectbyexamplequeryid= "false" >

</table>

<table tablename= "T_base_pro_spec" domainobjectname= "Baseprospec"

Enablecountbyexample= "false" enableupdatebyexample= "false"

Enabledeletebyexample= "false" enableselectbyexample= "false"

Selectbyexamplequeryid= "false" >

</table>

<table tablename= "T_base_query_price" domainobjectname= "Basequeryprice"

Enablecountbyexample= "false" enableupdatebyexample= "false"

Enabledeletebyexample= "false" enableselectbyexample= "false"

Selectbyexamplequeryid= "false" >

</table>

<table tablename= "t_hom_distribution" domainobjectname= "Homdistribution"

Enablecountbyexample= "false" enableupdatebyexample= "false"

Enabledeletebyexample= "false" enableselectbyexample= "false"

Selectbyexamplequeryid= "false" >

</table>

<table tablename= "T_hom_pro_attribute" domainobjectname= "Homproattribute"

Enablecountbyexample= "false" enableupdatebyexample= "false"

Enabledeletebyexample= "false" enableselectbyexample= "false"

Selectbyexamplequeryid= "false" >

</table>

<table tablename= "T_hom_pro_custom_att" domainobjectname= "Homprocustomatt"

Enablecountbyexample= "false" enableupdatebyexample= "false"

Enabledeletebyexample= "false" enableselectbyexample= "false"

Selectbyexamplequeryid= "false" >

</table>

<table tablename= "T_hom_pro_dis_area" domainobjectname= "Homprodisarea"

Enablecountbyexample= "false" enableupdatebyexample= "false"

Enabledeletebyexample= "false" enableselectbyexample= "false"

Selectbyexamplequeryid= "false" >

</table>

</context>

</generatorConfiguration>


This article is from the "Nighthawk Soar" blog, please be sure to keep this source http://iritchie.blog.51cto.com/7031731/1668954

MYBATIS3 Database Automation Mapping configuration file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.