generatorConfig.xml 3.97 KB
<?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" >
<!-- 确保已安装mybatis generator eclipse插件 -->
<generatorConfiguration>

	<context id="DB2Tables" targetRuntime="MyBatis3">
		<property name="javaFileEncoding" value="UTF-8"/>
		<plugin type="tk.mybatis.mapper.generator.MapperPlugin">
			<property name="mappers" value="com.glsx.plat.mybatis.mapper.CommonBaseMapper"/>
			<property name="caseSensitive" value="true"/>
			<property name="useActualColumnNames" value="true" />
			<!--<property name="beginningDelimiter" value="`"/>-->
			<!--<property name="endingDelimiter" value="`"/>-->
		</plugin>
		<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://192.168.3.227:3306/platform_process?characterEncoding=utf8" userId="dev_admin" password="1f7e1ed2" />
		<javaTypeResolver>
			<property name="forceBigDecimals" value="false" />
		</javaTypeResolver>

		<!-- api绝对路径-->
		<javaModelGenerator targetPackage="cn.com.glsx.process.modules.entity" targetProject="F:\360MoveData\Users\11\Desktop\企微SAAS\2023\09\sop\platform-process-server\platform-process-api\src\main\java">
			<property name="enableSubPackages" value="true" />
			<property name="trimStrings" value="true" />
		</javaModelGenerator>
		<sqlMapGenerator targetPackage="mapper" targetProject="src\main\resources">
			<property name="enableSubPackages" value="false" />
		</sqlMapGenerator>

		<!-- api绝对路径-->
		<javaClientGenerator targetPackage="cn.com.glsx.process.modules.mapper" targetProject="F:\360MoveData\Users\11\Desktop\企微SAAS\2023\09\sop\platform-process-server\platform-process-api\src\main\java" type="XMLMAPPER">
			<property name="enableSubPackages" value="true" />
		</javaClientGenerator>
		<!-- 可配置多个 -->
		<table tableName="sop_tpl_node" domainObjectName="SopTplNode" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
			<generatedKey column="id" sqlStatement="MySql" identity="true"/>
		</table>
		<!--<table tableName="sop_tpl_node" domainObjectName="SopTplNode" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
			<generatedKey column="id" sqlStatement="MySql" identity="true"/>
		</table>
		<table tableName="sop_inst_node_batch" domainObjectName="SopInstNodeBatch" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
			<generatedKey column="id" sqlStatement="MySql" identity="true"/>
		</table>
		<table tableName="sop_inst_node" domainObjectName="SopInstNode" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
			<generatedKey column="id" sqlStatement="MySql" identity="true"/>
		</table>
		<table tableName="sop_inst_link" domainObjectName="SopInstLink" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
			<generatedKey column="id" sqlStatement="MySql" identity="true"/>
		</table>
		<table tableName="sop_inst_batch" domainObjectName="SopInstBatch" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
			<generatedKey column="id" sqlStatement="MySql" identity="true"/>
		</table>
		<table tableName="sop_inst" domainObjectName="SopInst" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
			<generatedKey column="id" sqlStatement="MySql" identity="true"/>
		</table>
		<table tableName="node_tpl" domainObjectName="NodeTpl" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
			<generatedKey column="id" sqlStatement="MySql" identity="true"/>
		</table>-->
	</context>
</generatorConfiguration>