Document directory
- Requirements
- Automatic eclipse install
- Manual eclipse install
Introduction to ibator
Ibator is a code generator for ibatis. ibator will introspect a database table (or partition tables) and will generate ibatis artifacts that can be used to access the table (s ). this abates some of the initial nuisance of setting up objects and configuration files to interact with database tables. ibator seeks to make a major impact on the large percentage of database operations that are simple CRUD (create, retrieve, update, delete ). you will still need to hand code SQL and objects for custom queries, or stored procedures.
Ibator will generate:
- Sqlmap XML files
- Java classes to match the primary key and fields of the table (s)
- Dao classes that use the above objects (optional)
Ibator can run as a standalone JAR file, or as an ant task, or as an eclipse plugin.
Ibator is currently under development. the legacy version (abator) is still available. if you have suggestions for the future of ibator, please feel free to send them to the Java User's mailing list ..
Eclipse plugin
When run as an eclipse plugin, abator will persist the generated Java classes and sqlmap files in eclipse projects. abator can be run iteratively multiple time as the database design matures-and any hand coded additions to generated Java classes or sqlmap files will remain undisturbed.
Documentation for abator is integrated into the eclipse help system.
Requirements
- Eclipse 3.2 or higher (Note: If you are stuck on Eclipse 3.0, or version 6.0 of the rational development tools, the prior version of the plugin is still available on the Update site)
- JDK 1.4 or higher
Automatic eclipse install
If you 've already installed a prior version of abator, simply run the eclipse install/update tool and the new version will be found automatically.
If you 've not already installed abator, then you can use the built in eclipse install support by following these steps:
- Take the "Help> Software Updates> Find and install" menu option
- Select the "search for new features to install" radio button, press "Next"
- Press the "new remote site" button
- Enter the following information:
-
Name:
-
Abator for eclipse Update site
-
URL:
-
Http://ibatis.apache.org/tools/abator
- Press OK
- Check the box next to "abator for eclipse Update site"
- Follow the remainder of the install wizard
Manual eclipse install
The Automatic Install is much preferred, but you can also install abator manually if you desire. to install manually, download the file abatorforeclipse1.1.0.zip and unzip the file to some convenient location. after unzipping the Update site archive, follow these steps in Eclipse:
- Take the "Help> Software Updates> Find and install" menu option
- Select the "search for new features to install" radio button, press "Next"
- Press the "new local site" button
- Navigate to the location where you unzipped the file.
- Press OK
- Follow the remainder of the install wizard