Install the Abator plugin on eclipse

Source: Internet
Author: User

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

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.