<!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="C:\Users\lenovo\.m2\repository\com\h2database\h2\2.1.214\h2-2.1.214.jar"/> -->
	<!-- <classPathEntry location="C:\Users\lenovo\.m2\repository\com\mysql\mysql-connector-j\8.0.31\mysql-connector-j-8.0.31.jar"/> -->
	<!-- <classPathEntry location="C:\Users\lenovo\.m2\repository\org\mariadb\jdbc\mariadb-java-client\3.0.8\mariadb-java-client-3.0.8.jar"/> -->
	<!-- <classPathEntry location="C:\Users\Administrator\.m2\repository\net\sourceforge\jtds\jtds\1.3.1\jtds-1.3.1.jar"/> -->
	<!-- <classPathEntry location="C:\Users\Administrator\.m2\repository\com\oracle\ojdbc14\10.2.0.2.0\ojdbc14-10.2.0.2.0.jar"/> -->


	<context id="mysqlTables" targetRuntime="MyBatis3DynamicSql"> <!-- MyBatis3DynamicSql MyBatis3-->

		<plugin type="jj.tech.paolu.utils.mybatis.MybatisControllerPlugin" />
		<!--<plugin type="org.mybatis.generator.plugins.CaseInsensitiveLikePlugin" />-->
		<!--<plugin type="org.mybatis.generator.plugins.IgnoreViewsPlugin" />-->

		<commentGenerator>
			<!-- <property name="suppressDate" value="true"/> -->
			<!-- 是否去除自动生成的注释 true：是 ： false:否 -->
			<!-- <property name="suppressAllComments" value="true" /> -->
			<property name="addRemarkComments" value="true" />
		</commentGenerator>



		<!--<jdbcConnection driverClass="org.h2.Driver" connectionURL="jdbc:h2:./test;MODE=MySQL;AUTO_SERVER=TRUE" userId="sa" password="">
		</jdbcConnection>-->

		<!-- nullCatalogMeansCurrent对mariadb 不起作用，会查出所有的非表对象 -->
		<jdbcConnection driverClass="org.mariadb.jdbc.Driver"  connectionURL="jdbc:mariadb://173.249.207.93:3306/yx" userId="root" password="test000000">
			<property name="nullCatalogMeansCurrent" value="true" />
		</jdbcConnection>
		<!-- 数据库驱动、连接URL、用户名、密码 -->
		<!-- <jdbcConnection driverClass="com.mysql.cj.jdbc.Driver" connectionURL="jdbc:mysql://147.78.243.242:3306/test?characterEncoding=utf-8" userId="root" password="open123">
			<property name="nullCatalogMeansCurrent" value="true" />
		</jdbcConnection> -->

		<!-- <jdbcConnection driverClass="oracle.jdbc.OracleDriver" connectionURL="jdbc:oracle:thin:@192.168.63.200:1521:orcl"
			userId="new_hlpay" password="new_hlpay"> </jdbcConnection> -->
		<!-- <jdbcConnection driverClass="net.sourceforge.jtds.jdbc.Driver" connectionURL="jdbc:jtds:sqlserver://192.168.63.190;DatabaseName=pay_2015-01-api"
		userId="sa" password="111111"> </jdbcConnection> -->

		
		<!-- <jdbcConnection driverClass="org.postgresql.Driver"  connectionURL="jdbc:postgresql://192.168.0.123:5434/ailt" userId="postgres" password="mysecretpassword">
		</jdbcConnection> -->
		<!--<jdbcConnection driverClass="org.postgresql.Driver"  connectionURL="jdbc:postgresql://127.0.0.1:5432/ailt" userId="postgres" password="123456">
		</jdbcConnection>-->

		<!--<jdbcConnection driverClass="org.postgresql.Driver"  connectionURL="jdbc:postgresql://192.168.0.123:5434/ailt_test" userId="postgres" password="mysecretpassword">

			<property name="nullCatalogMeansCurrent" value="true" />
		</jdbcConnection>-->


		<javaTypeResolver>
			<!--<property name="forceBigDecimals" value="false" />-->
			<property name="useJSR310Types" value="true" />
		</javaTypeResolver>




		<!-- 生成模型包名和位置 -->
		<javaModelGenerator targetPackage="jj.tech.paolu.repository.mybatis.entity"
			targetProject="src/main/java">
			<!-- <property name="enableSubPackages" value="true" /> -->
			<property name="trimStrings" value="true" />
		</javaModelGenerator>

		<!-- 生成xml文件的包名和位置 -->
		<!-- <sqlMapGenerator targetPackage="jj.tech.paolu.repository.mybatis.dao"
			targetProject="target/generated-sources/repository">
			<property name="enableSubPackages" value="true" />
		</sqlMapGenerator> -->

		<!-- 生成DAO的包名和位置 -->
		<javaClientGenerator targetPackage="jj.tech.paolu.repository.mybatis.dao"
			targetProject="src/main/java">
			<!-- <property name="enableSubPackages" value="true" /> -->
			<property name="dynamicSqlSupportPackage" value="jj.tech.paolu.repository.mybatis.dao.support"/>
		</javaClientGenerator>

		<!-- 需要生成的表, mysql 不支持这种模式: catalog="TEST" schema="PUBLIC"  -->
		<!-- 参考https://mybatis.org/generator/usage/mysql.html -->
		<table catalog="yx" tableName="%" enableCountByExample="false"
			enableDeleteByExample="false" enableSelectByExample="false"
			enableUpdateByExample="false" selectByExampleQueryId="false">

			<property name="ignoreQualifiersAtRuntime" value="true" />
			<property name="useActualColumnNames" value="true" />

			<!--设置ID自增策略generatedKey时, id不可以指定值, 无法生成批量插入方法insertMultiple-->
			<!--<generatedKey column="id" sqlStatement="JDBC" identity="true" />-->
			<!--不设置ID自增策略为generatedKey时, id可以指定值, 可以生成批量插入方法insertMultiple-->
			<!--<generatedKey column="id" sqlStatement="MySql" identity="true" />-->
		</table>



	</context>
</generatorConfiguration>
