encyclopegia.org

Data mapper pattern

In software engineering, the data mapper pattern is an architectural pattern. 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 Create, Read, Update, and Delete, that operate on objects that represent domain entity types in a data store. A Data Mapper 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). The goal of the pattern is to keep the in-memory representation and the persistent data store independent of each other and the data mapper itself. This is useful when one needs to model and enforce strict business processes on the data in the domain layer that do not map neatly to the persistent data store. The layer is composed of one or more mappers (or Data Access Objects), performing the data transfer. Mapper implementations vary in scope. Generic mappers will handle many different domain entity types; dedicated mappers will handle one or a few.

In software engineering, the data mapper pattern is an architectural pattern. 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 Create, Read, Update, and Delete, that operate on objects that represent domain entity types in a data store. A Data Mapper 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). The goal of the pattern is to keep the in-memory representation and the persistent data store independent of each other and the data mapper itself. This is useful when one needs to model and enforce strict business processes on the data in the domain layer that do not map neatly to the persistent data store. The layer is composed of one or more mappers (or Data Access Objects), performing the data transfer. Mapper implementations vary in scope. Generic mappers will handle many different domain entity types; dedicated mappers will handle one or a few.

References

No reference rows published for this article.

Cite this article

MLA

"Data mapper pattern." encyclopegia.org, 2025, https://encyclopegia.org/wiki/data-mapper-pattern. Accessed 24 November 2026.

Chicago

"Data mapper pattern." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/data-mapper-pattern.

APA

encyclopegia.org. (2025). Data mapper pattern. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/data-mapper-pattern

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Kyle Carter

enwiki · references available

Urupa language

enwiki · references available

Susan Elderkin

enwiki · references available

Xu Zizhi Tongjian Changbian

enwiki · references available

John Crerar (Canadian politician)

enwiki · references available

Elderkin

enwiki · references available

The Aller Værste!

enwiki · references available

Fourth cabinet of Davíð Oddsson

enwiki · references available

Marvin Ellmann

enwiki · references available

Christian Telch

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1281231142 · 0.5 · snapshot enwiki-001281231142

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.