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