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是處于持久化方案和服務(wù)或領(lǐng)域?qū)又g的抽象層。他維護一致的API和事務(wù)管理。沒有他,你需要為持久層方案累積各種不同類型的東西,例如Session和Connection。你將同時發(fā)現(xiàn)處理你的持久化方案很類。DAO的好處就是,不必擔(dān)心寫你的DAO。
IBatis是一個具體實現(xiàn),但是iBatis之外,DAO是為你的特定的應(yīng)用和定制你的需要而準(zhǔn)備的最好的東西。
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是一個持久化方案,允許你容易的實現(xiàn)sql到對象的映射。他不是一個對象關(guān)系映射工具,但是可以通過sql把表格映射到對象集。