IBatis is a lightweight persistence framework that maps objects to SQL statements. The SQL is decoupled from the application logic by storing in XML descriptor file . SQL mapping is done by data mapper to persist objects to a relational database.
In this article i am going to discuss on how to use ibator plugin in eclipse to generate Java model objects from your database, the DAO interface and its auto implementation to access your db and auto generated SQL map xml files. And also we will deal with fun of dynamic SQL. The Link for downloading the working eclipse project is given at the end of article. For more detail about ibatis visit the references at last of this article.
Part A: Ibator/DB Configuration
In this article i am going to discuss on how to use ibator plugin in eclipse to generate Java model objects from your database, the DAO interface and its auto implementation to access your db and auto generated SQL map xml files. And also we will deal with fun of dynamic SQL. The Link for downloading the working eclipse project is given at the end of article. For more detail about ibatis visit the references at last of this article.
Part A: Ibator/DB Configuration
Step 1. Installing IBator
Visit this link and download ibator plugin for eclipse
http://code.google.com/p/mybatis/wiki/Downloads?tm=2
Or From Eclipse Update Site :
http://ibatis.apache.org/tools/ibator
http://code.google.com/p/mybatis/wiki/Downloads?tm=2
Or From Eclipse Update Site :
http://ibatis.apache.org/tools/ibator
Step 2. Requirements and Project Configuration: