---
title: "Abator Ibator"
author: "terryzz"
date: "2011-01-14T10:53:04Z"
tags: []
categories: ["企业架构"]
slug: "abator-ibator"
draft: false
lastmod: "2011-01-14T10:54:08Z"
id: 871010
url: "https://terryzz.iteye.com/blog/871010"
---

由于表的字段太多，于是想用ibatis自动生成工具生成，于是就装Eclipse插件，由于插件更新的问题，导致我浪费很多时间。注意以下几点：
1. 插件地址：http://ibatis.apache.org/tools/ibator
   注意后面是ibator  我打abator报错 - -
2. 由于使用的ibator，发现跟google搜索的xml配置文件有差异，主要是
    classPathEntry这个子元素
   一般google搜索的文章都配置在jdbcConnection元素下，而这里是不允许的！
   ibator配置文件说明：http://ibatis.apache.org/docs/tools/ibator/index.html

3.  classPathEntry根据文档知道：
    classPathEntry现在是ibatorConfiguration 子元素 千万注意！
    而且紧跟其后，你放在最后面还不行 - -

<ibatorConfiguration >
  <classPathEntry location="\E:\DBDriver\sqljdbc.jar"/>
  <ibatorContext id="context1" >
   <jdbcConnection driverClass="com.microsoft.sqlserver.jdbc.SQLServerDriver" 
    		connectionURL="jdbc:sqlserver://127.0.0.1;databaseName=AscendPlat"
    		 userId="sa"
    		 password="1111" >
    </jdbcConnection>
   .....
   ...

<ibatorConfiguration >