Add abator -- ibatis code generation tool for eclipse

Source: Internet
Author: User
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:

  1. Take the "Help> Software Updates> Find and install" menu option
  2. Select the "search for new features to install" radio button, press "Next"
  3. Press the "new remote site" button
  4. Enter the following information:
    Name:
    Abator for eclipse Update site
    URL:
    Http://ibatis.apache.org/tools/abator
  5. Press OK
  6. Check the box next to "abator for eclipse Update site"
  7. 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:

  1. Take the "Help> Software Updates> Find and install" menu option
  2. Select the "search for new features to install" radio button, press "Next"
  3. Press the "new local site" button
  4. Navigate to the location where you unzipped the file.
  5. Press OK
  6. Follow the remainder of the install wizard

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.