39 lines
1.9 KiB
XML
39 lines
1.9 KiB
XML
<?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>
|
|
<properties url="file:///path to your project\src\main\resources\application.properties" />
|
|
<classPathEntry location="(path to your maven reporsitory)\com\h2database\h2\1.3.154\h2-1.3.154.jar" />
|
|
<!--<classPathEntry location="C:\Users\ehuaxio\.m2\repository\com\h2database\h2\1.3.154\h2-1.3.154.jar" />-->
|
|
<classPathEntry location="target/classes" />
|
|
|
|
<context id="RuntimeTables" targetRuntime="MyBatis3">
|
|
<commentGenerator>
|
|
<property name="suppressAllComments" value="true" />
|
|
</commentGenerator>
|
|
|
|
<jdbcConnection driverClass="${jdbc.driver}" connectionURL="${jdbc.url}" userId="${jdbc.username}"
|
|
password="${jdbc.password}">
|
|
</jdbcConnection>
|
|
|
|
<javaModelGenerator targetPackage="org.springside.examples.miniservice.entity" targetProject="MAVEN">
|
|
<property name="enableSubPackages" value="true" />
|
|
<property name="rootClass" value="org.springside.examples.miniservice.entity.IdEntity" />
|
|
</javaModelGenerator>
|
|
|
|
<sqlMapGenerator targetPackage="mapper" targetProject="MAVEN">
|
|
<property name="enableSubPackages" value="true" />
|
|
</sqlMapGenerator>
|
|
|
|
<javaClientGenerator type="XMLMAPPER" targetPackage="org.springside.examples.miniservice.dao"
|
|
targetProject="MAVEN">
|
|
<property name="enableSubPackages" value="true" />
|
|
</javaClientGenerator>
|
|
|
|
<table tableName="acct_user" domainObjectName="User" enableSelectByExample="false" enableDeleteByExample="false"
|
|
enableCountByExample="false" enableUpdateByExample="false" />
|
|
|
|
<table tableName="acct_department" domainObjectName="Department" enableSelectByExample="false"
|
|
enableDeleteByExample="false" enableCountByExample="false" enableUpdateByExample="false" />
|
|
</context>
|
|
</generatorConfiguration>
|