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

com.koubei.abator.ibator.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ibatorConfiguration
  PUBLIC "-//Apache Software Foundation//DTD Apache iBATIS Ibator Configuration 1.0//EN"
  "http://ibatis.apache.org/dtd/ibator-config_1_0.dtd">

<ibatorConfiguration>
	<!-- <classPathEntry location="./jdbc-driver/mysql-connector-java-5.1.5-bin.jar" 
		/> -->
	<ibatorContext id="mysqltables" defaultModelType="flat"
		targetRuntime="com.koubei.abator.KoubeiIntrospectedTableIbatis2Java2Impl">

		<property name="outputDir" value="${outputDir}" />
		<property name="project" value="${project}" />


		<property name="databaseUrl" value="${databaseUrl}" />
		<property name="password" value="${password}" />
		<property name="username" value="${username}" />




		<ibatorPlugin
			type="com.koubei.abator.plugin.DiableUpdateInsertDeletePlugin" />
			
		<ibatorPlugin type="com.koubei.abator.plugin.TableMetaInfoPlugin" />

		<ibatorPlugin type="org.apache.ibatis.ibator.plugins.SerializablePlugin" />

		<ibatorPlugin type="com.koubei.abator.KoubeiIbatorPlugin" />
		<ibatorPlugin
			type="org.apache.ibatis.ibator.plugins.RenameExampleClassPlugin">
			<property name="searchString" value="Example$"></property>
			<property name="replaceString" value="Criteria"></property>
		</ibatorPlugin>


		<ibatorPlugin type="org.apache.ibatis.ibator.plugins.SqlMapConfigPlugin">
			<property name="targetPackage" value="conf"></property>
			<property name="targetProject" value="${outputDir}"></property>
		</ibatorPlugin>


		<commentGenerator type="com.koubei.abator.KoubeiCommentGenerator">
		</commentGenerator>




		<jdbcConnection driverClass="com.mysql.jdbc.Driver"
			connectionURL="${databaseUrl}" userId="${username}" password="${password}">
		</jdbcConnection>

		<javaTypeResolver>
			<property name="forceBigDecimals" value="false" />
		</javaTypeResolver>

		<javaModelGenerator targetPackage="${project}.pojo"
			targetProject="${outputDir}">
			<property name="enableSubPackages" value="true" />
			<property name="trimStrings" value="true" />
		</javaModelGenerator>

		<sqlMapGenerator targetPackage="${project}.dao.sqlmap"
			targetProject="${outputDir}">
			<property name="enableSubPackages" value="true" />
		</sqlMapGenerator>

		<daoGenerator type="com.koubei.abator.KoubeiDaoGenerate"
			targetPackage="${project}.dao" targetProject="${outputDir}">
			<property name="enableSubPackages" value="true" />
		</daoGenerator>

		<table tableName="dump" />
	</ibatorContext>
</ibatorConfiguration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy