All Downloads are FREE. Search and download functionalities are using the official Maven repository.

derepositories.mbg-maven-plugin.1.0.source-code.generatorConfig.xml Maven / Gradle / Ivy

There is a newer version: 1.0.v201602292337
Show newest version
<?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>
	<context id="mysqlTables" targetRuntime="MyBatis3"
		defaultModelType="flat">
		<!-- 关闭注释 -->
		<commentGenerator>
			<!-- 是否取消注释 -->
			<property name="suppressAllComments" value="true" />
			<!-- 是否生成注释代时间戳 -->
			<property name="suppressDate" value="false" />
		</commentGenerator>

		<!-- 数据库连接信息 -->
		<jdbcConnection driverClass="com.mysql.jdbc.Driver"
			connectionURL="jdbc:mysql://10.1.1.92:3306/tmsdb_dev" userId="tmsdev"
			password="tmsdev" />

		<!-- 指定生成的类型为java类型,避免数据库中number等类型字段 -->
		<javaTypeResolver>
			<property name="forceBigDecimals" value="false" />
		</javaTypeResolver>

		<!-- 生成model模型,对应的包,存放位置可以指定具体的路径,如/ProjectName/src,也可以使用MAVEN来自动生成 -->
		<javaModelGenerator targetPackage="com.penging.tms.common.entity"
			targetProject="MAVEN">
			<property name="enableSubPackages" value="true" />
		</javaModelGenerator>

		<!--对应的xml mapper文件 -->
		<sqlMapGenerator targetPackage="com.penging.tms.common.repository"
			targetProject="MAVEN">
			<property name="enableSubPackages" value="true" />
		</sqlMapGenerator>

		<!-- 对应的dao接口 -->
		<javaClientGenerator type="XMLMAPPER"
			targetPackage="com.penging.tms.common.repository" targetProject="MAVEN">
			<property name="enableSubPackages" value="true" />
		</javaClientGenerator>
	
	</context>
</generatorConfiguration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy