Apache iBATIS Ibator for Eclipse Quick Start Guide
To get up and running quickly with Ibator in the Eclipse environment, follow these steps:
- Create an Ibator configuration file:
- File>New>Other...
- Select "Apache iBATIS Ibator Configuration File" from the "Apache iBATIS Ibator"
category, then press "Next"
- Specify the location of the file, and the name of the file (defaults to ibatorConfig.xml)
- Finish the wizard
- Fill out the configuration file appropriately. At a minimum, you must specify:
- jdbcConnection information to specify how to connect to the target database
- A target package, and target project for the javaModelGenerator
- A target package, and target project for the sqlMapGenerator
- A target package, target project, and type for the daoGenerator (or you can remove the
daoGenerator element if you don't wish to generate DAOs)
- At least one database table
- Save the file
- Right click on the configuration file in Eclipse's navigator, or package explorer, view and take the
menu option to "Generate iBATIS Artifacts"
Important Note:
Ibator will not overwrite any custom changes you make to the objects it generates. You can
run it over and over again without fear of losing custom changes.