DAO framework and SQL Maps framework are different things. You can use both, or either one by itself.
DAO framework和SQL Maps framework是不同的东西,你可以用二者,或者用其中任何一个。
DAO is an abstraction layer that sits between your persistence solution and your service/domain layer. It serves to maintain a consistent API and transaction management facility to all of the higher layers (like service and domain). Without it, you will end up with various different types of artifacts from your persistence solution (like Session, or Connection) all mixed together. You'll also find yourself more tied to your persistence solution. One point about DAO – don't be afraid to write your own DAO! iBATIS is one implementation, but of anything else in iBATIS, DAO is the part that's is often best written for your specific application and customized to your needs.
DAO是处于持久化方案和服务或领域层之间的抽象层。他维护一致的API和事务管理。没有他,你需要为持久层方案累积各种不同类型的东西,例如Session和Connection。你将同时发现处理你的持久化方案很类。DAO的好处就是,不必担心写你的DAO。
IBatis是一个具体实现,但是iBatis之外,DAO是为你的特定的应用和定制你的需要而准备的最好的东西。
SQL Maps is a persistence solution that allows you to easily map SQL to java objects. It is NOT an object-relational mapping tool, but can be used to map tables to objects using SQL.
SQL Maps是一个持久化方案,允许你容易的实现sql到对象的映射。他不是一个对象关系映射工具,但是可以通过sql把表格映射到对象集。