Here's what I saw on the internet a little need to emphasize: URL Http://ibatis.apache.org/tools/abator
Then select all, and then ==> reboot.
Install the Abator plugin on eclipse
Reference: http://www.blogjava.net/beansoft/archive/2008/03/31/189795.html
Installing the Abator plugin on eclipse
Eclipse Menu Bar--help--software Updates--Find and Install ...
In the popup dialog box, select "Search for new features to install" and click "Next"
In the dialog box, click the button New remort Site ... In the pop-up dialog box, fill in the Http://ibatis.apache.org/tools/abator in the URL entry box, and the name input box will write anything.
Click Finish, install the plugin, and then restart Eclipse
Abatorconfig.xml:
<?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> <!--todo:add Database Connection Information--
<jdbcconnection driverclass= "???"
Connectionurl= "???"
Userid= "???"
Password= "???" >
<classpathentry location= "???"/>
</jdbcConnection>
<javamodelgenerator targetpackage= "???" Targetproject= "???"/>
<sqlmapgenerator targetpackage= "???" Targetproject= "???"/>
<daogenerator type= "IBATIS" targetpackage= "???" Targetproject= "???"/>
<table schema= "???" Tablename= "???" >
<columnoverride column= "???" Property= "???"/>
</table>
</abatorContext>
</abatorConfiguration>
1. Fill in the Driverclass (JDBC driver, for example, Oracle is Oracle.jdbc.driver.OracleDriver)
2. Fill in the Connectionurl (connection string, for example, Oracle is Jdbc:oracle:thin:@192.168.0.246:1521:test)
3. Fill in the location of the classpathentry (JDBC driver jar package, e.g. E:/project/ibatistest/webcontent/web-inf/lib/ojdbc14.jar)
4. Fill in the Javamodelgenerator, generated DTO (Java model Class)
Targetpackage: The location of the target package, such as Com.test.dto
Targetproject: Target project name, fill in the Eclipse project name where the configuration file is located
5. Fill in the Sqlmapgenerator and generate the relevant configuration of the XML Sqlmap
Targetpackage: Target location, such as Com.test.sqlmap
Targetproject: Target project name, fill in the Eclipse project name where the configuration file is located
6. Fill in the Daogenerator, generate the relevant configuration of DAO
Type: Build the DAO implementation types, if you use spring words write spring, otherwise write Ibatis
Targetpackage: Target location, such as Com.test.dao
Targetproject: Target project name, fill in the Eclipse project name where the configuration file is located
7. Configure tables for related databases
Schema: Database schema,oracle is the user name to fill in the database
TableName: Table Name