--- url: "https://martinfowler.com/eaaCatalog/activeRecord.html" titulek: "Active Record" h1: "Active Record" popis: "An object that wraps a row in a database table or view, encapsulates the database access, and adds domain logic on that data." jazyk: "" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-13 21:08:40" znaku: 710 slov: 109 kodovani: "utf-8" sha256: "85fbfd5adec83af6987e9c6ab742614a7d5f90bebf01129d3ac3551fd75bfb1c" --- # Active Record An object that wraps a row in a database table or view, encapsulates the database access, and adds domain logic on that data. An object carries both data and behavior. Much of this data is persistent and needs to be stored in a database. Active Record uses the most obvious approach, putting data access logic in the domain object. This way all people know how to read and write their data to and from the database. for more details go to [Chapter 10](https://learning.oreilly.com/library/view/patterns-of-enterprise/0321127420/ch10.html#ch10lev1sec3) of the online ebook at oreilly.com This pattern is part of [Patterns of Enterprise Application Architecture](.) [Martin Fowler](/) 05 March 2003