Friday, March 19, 2010

Spring & iBatis

Steps to configure Spring and iBatis

For each step create the artifact
  1. Database object, in this example a single table is used with MySQL.
  2. SqlMap.xml that describes your SQL mapping.
  3. SqlMapConfig.xml pointing to your SqlMap.xml.
  4. Bean that will hold the data from the table
  5. DAO interface
  6. DAO implementation
  7. applicationContext.xml and configure your DAOs.
  8. Testing
Download the code from: svn checkout https://mybrain.googlecode.com/svn/branches/mybrain

No comments: