You use the active record pattern to wrap relational database persistence methods in domain classes.
活动记录模式则可用来在域类内包装关系数据库持久性方法。
The DAO pattern protects your application from being tied to a particular persistence approach.
DAO 模式可以保护应用程序,使之不必与特定持久性方法捆绑在一起。
What we have achieved so far is a lean and mean implementation of a DAO pattern which allows the persistence of 'state-only' entities.
到目前为止,我们精简了DAO模式的实现,该实现只能持久化实体的状态。
应用推荐