ibatis 代码生成工具abator

用过ibatis的人都知道重复代码超多,现奉上代码生成器一个。

eclipse要更新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:@192.168.***.***:1521:mgrmoney" 
	    userId="sjtd" 
	    password="sjtd" >
      <classPathEntry location="E:/oracle/product/10.2.0/db_1/jdbc/lib/classes12.jar" />
    </jdbcConnection>
    <javaModelGenerator targetPackage="dto" targetProject="aaa" />
    <sqlMapGenerator targetPackage="slqmap" targetProject="aaa" />
    <daoGenerator targetPackage="dao" targetProject="aaa" type="SPRING" />
    <table schema="sjtd" tableName="dairy" ></table>
  </abatorContext>
</abatorConfiguration> 

 

你可能感兴趣的:(apache,spring,oracle,jdbc,ibatis)