PEAA_学习笔记_Active Record
An object that wraps a record data structure in an external resource, such as a row in a database table, and adds some domain logic to that object. Active Record uses the most obvious approach: put data access logic into the domain object. This way all people know how to read and write their data …