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.
- 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.
- 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.
- 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
Useful links:
Spring 3 + ibatis + maven sample in git : link
ibatis tutorial: link
No comments:
Post a Comment