Mybatis Generator for SQL Server

Source: Internet
Author: User



Mybatis Generator for SQL Server


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

    <!-Specify the path of the mysql driver package. Don't put it in the Chinese path->

    <classPathEntry location = "D: \ Jr \ sqljdbc4.jar" />

    <!-Where the configuration data source and generated code are stored->

    <context id = "context1">

        <commentGenerator>

            <!-Remove automatically generated comments->

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

        </ commentGenerator>

        <jdbcConnection driverClass = "com.microsoft.sqlserver.jdbc.SQLServerDriver"

            connectionURL = "jdbc: sqlserver: //127.0.0.1: 1433; databaseName = se; catalogName = se" userId = "user" password = "pass">

        </ jdbcConnection>

        <!-The location of the generated entity class is the default resource package src->

        <javaModelGenerator targetPackage = "com.se.model" targetProject = "T" />

        <!-The location of the generated sqlMap mapping file, the default resource package src->

        <sqlMapGenerator targetPackage = "com.se.mapper" targetProject = "T" />

        <!-Generate mapxml corresponding client, which is dao->

        <javaClientGenerator targetPackage = "com.se.dao" targetProject = "T" type = "XMLMAPPER" />


        <!-For which tables generate code tableName: table name schema: do not fill in, the rest of the attributes are disabled generation of example queries->

        <table tableName = "Tbl" domainObjectName = "Tbl"

            enableCountByExample = "false" enableUpdateByExample = "false"

            enableDeleteByExample = "false" enableSelectByExample = "false"

            selectByExampleQueryId = "false">

        </ table>

        


    </ context>

</ generatorConfiguration>


Mybatis Generator for SQL Server


Related Article

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.