Metraipolis › archive › dc_6f9dac5687bc
Active record pattern — Wikipedia (en)
- Source
- Wikipedia (en)
- Original
- https://en.wikipedia.org/wiki/Active_record_pattern
- License (as archived)
- CC-BY-SA-4.0
- Archived
- 2026-11-07T11:59:25.780Z
- SHA-256 of the archived text
346f469cfc8b50ff40ed11a6e88decc8ab3c6ae0be79271b4323a18ab93a2660- Stable URL of this page
https://metraipolis.com/documento/dc_6f9dac5687bc
How to cite
Active record pattern — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Active_record_pattern (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_6f9dac5687bc (Metraipolis archive dc_6f9dac5687bc, sha256 346f469cfc8b50ff40ed11a6e88decc8ab3c6ae0be79271b4323a18ab93a2660)
BibTeX
@misc{dc6f9dac5687bc,
title = {Active record pattern — Wikipedia (en)},
howpublished = {Wikipedia (en)},
url = {https://en.wikipedia.org/wiki/Active_record_pattern},
note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_6f9dac5687bc; sha256 346f469cfc8b50ff40ed11a6e88decc8ab3c6ae0be79271b4323a18ab93a2660},
year = {2026}
}Archived text
Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Active_record_pattern. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
In software engineering, the active record pattern is an architectural pattern. It is found in software that stores in-memory object data in relational databases. It was named by Martin Fowler in his 2003 book Patterns of Enterprise Application Architecture. The interface of an object conforming to this pattern would include functions such as Insert, Update, and Delete, plus properties that correspond more or less directly to the columns in the underlying database table. The Active Record pattern is a Data Access Layer that performs bidirectional transfer of data between a persistent data store (often a relational database) and an in-memory data representation (the domain layer). A database table or view is wrapped into a class. Thus, an object instance is tied to a single row in the table. After creation of an object, a new row is added to the table upon save. Any object loaded gets its information from the database. When an object is updated, the corresponding row in the table is also updated. The wrapper class implements accessor methods or properties for each column in the table or view. This pattern is commonly used by object persistence tools and in object–relational mapping (ORM). Typically, foreign key relationships will be exposed as an object instance of the appropriate type via a property. Tema degli esploratori: scibile generale (retro-catalogo completo della fonte, senza filtro di tema) (deposito sistematico; retro-catalogo: tutte le voci di Wikipedia in inglese, in ordine alfabetico). Fonte: Wikipedia in inglese, voce «Active record pattern» — https://en.wikipedia.org/wiki/Active_record_pattern Wikidata Q344181: «design pattern for software that stores in-memory object data in relational databases, with interface functions for insert, update and delete, and properties corresponding to the columns in the underlying database table» (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q344181 Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Active_record_pattern?action=history). Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza. Estratto dell'introduzione non modificato nel contenuto; revisione 1338854499, consultata il 2026-11-07T11:55:10.913Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: fdd64f78b57914f792e8359f2e8701f7520ad3aa7bf39d4493c8c5c739896f95