Ibatis Abator

Abator Remort Site http://ibatis.apache.org/tools/abator

配置解释:如下

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE abatorConfiguration PUBLIC "-//Apache Software Foundation//DTD Abator for iBATIS Configuration 1.0//EN" "http://ibatis.apache.org/dtd/abator-config_1_0.dtd" >
<abatorConfiguration>
	<abatorContext>
		<jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@localhost:1521:orcl"
			userId="数据库用户名" password="数据库密码">
			<classPathEntry location="JDBC驱动包路径 如:d:/ojdbc5_g.jar" />
		</jdbcConnection>
		
		<javaModelGenerator targetPackage="com.hxf.dto" targetProject="项目名称"/>
		<sqlMapGenerator targetPackage="com.hxf.orm" targetProject="项目名称 />
		<daoGenerator targetPackage="com.hxf.dao" targetProject="项目名称"
			type="生成的dao实现的类型 [GENERIC-CI | SPRING | IBATIS]" />
		<table schema="数据库schema (如果是oracle就是填写数据库的用户名,可以不填)" tableName="数据库表名称">
			<!-- 里面内容可不填写-->
				<columnOverride column="???" property="???" delimitedColumnName="" javaType="" jdbcType="" typeHandler=""/>
				<!-- 重写的列,列名重写 -->
				<columnRenamingRule searchString="" replaceString=""/>
				<generatedKey column="" sqlStatement="" identity="" type=""/>
				<!-- 来告诉abator那些列需要自动返回值(当插入的时候可以返回插入记录的主键,这对有外键的数据库极其有用)identity默认为false -->
				<ignoreColumn column="" delimitedColumnName=""/>
				<property name="" value=""/>
		</table>
		<table schema="" tableName="..."></table>
		<table schema="" tableName="..."></table>
	</abatorContext>
</abatorConfiguration>
不是太全,希望对你有用。

你可能感兴趣的:(oracle,数据库,ibatis,schema,jdbc,encoding)