Learn how to use ibatis sqlMap and DAO package

Ibatis is used ususally in Java projects, here are some steps and example source code of how to use ibatis sqlMap and DAO package.

Detail list

Libraries need
ibatis-2.3.4.726.jar
ibatis-dao-2.jar
mysql-connector-java-5.1.6-bin.jar
jar lib download url
ibatis home
ibatis-2.3.4.726.jar
ibatis-dao-2.jar
JDBC Diver download
Database prepare
Use the sql file(test_account.sql) to create table in database test.
Run the test project
The project need to run in Tomcat.
Download the builded zip file of the test project.
Download the src zip file of the test project.
ibatis sqlMap
configuration: src/sql-map-config.xml
Java bean and map xml
src/ibatis/Account.java
src/ibatis/Account.xml
src/ibatis/SqlMap.java
ibatis DAO with sqlMap
configuration
src/sql-map-config.xml
src/dao.xml
DAO interface and implement
src/ibatis/dao/AccountDAO.java
src/ibatis/dao/AccountDAOImpl.xml
Database connection config
src/database.properties
JUnit test
ibatis sqlMap test
ibatis DAO test
single ibatis sqlMap client factory test
Reference
Pdf documentation in chinese
ibatis 使用笔记
Java - List Example

<<Back home  Naked(no css) site by Lagtan#gmail.com.