iBatis is in between hibernate and jdbc. A somewhat ORM. It is more about simplicity.
Useful links:
Spring 3 + ibatis + maven sample in git : link
ibatis tutorial: link
What is iBatis ?
- A JDBC Framework
- Developers write SQL, iBATIS executes it using JDBC.
- No more try/catch/finally/try/catch.
- Developers write SQL, iBATIS executes it using JDBC.
- An SQL Mapper
- Automatically maps object properties to prepared statement parameters.
- Automatically maps result sets to objects.
- Support for getting rid of N+1 queries.
- Automatically maps object properties to prepared statement parameters.
- A Transaction Manager
- iBATIS will provide transaction management for database operations if no
other transaction manager is available.
- iBATIS will use external transaction management (Spring, EJB CMT, etc.)
if available.
- iBATIS will provide transaction management for database operations if no
- Great integration with Spring, but can also be used without Spring (the
Spring folks were early supporters of iBATIS).
What isn't iBATIS ?
- An ORM
- Does not generate SQL
- Does not have a proprietary query language
- Does not know about object identity
- Does not transparently persist objects
- Does not build an object cache
- Does not generate SQL
Useful links:
Spring 3 + ibatis + maven sample in git : link
ibatis tutorial: link
0 comments:
Post a Comment