Data Mapper Pattern
conceptDesign Pattern
Overview
Developed byMartin Fowler
Use casedecoupling domain objects from database schema
Knowledge graph stats
Claims41
Avg confidence93%
Avg freshness100%
Last updatedUpdated 5 days ago
WikidataQ5227311
Trust distribution
100% unverified
Governance

Data Mapper Pattern

concept

Layer of software that separates in-memory objects from database, keeping them independent

Compare with...

primary use case

ValueTrustConfidenceFreshnessSources
decoupling domain objects from database schemaUnverifiedHighFresh1
Separating domain objects from database access logicUnverifiedHighFresh1
separating domain objects from database persistence logicUnverifiedHighFresh1
Keeping domain objects independent of database schemaUnverifiedHighFresh1
mapping between objects and database tablesUnverifiedHighFresh1
object-relational mappingUnverifiedHighFresh1
Implementing Object-Relational MappingUnverifiedHighFresh1
isolating domain logic from data access codeUnverifiedHighFresh1

published in

ValueTrustConfidenceFreshnessSources
Patterns of Enterprise Application ArchitectureUnverifiedHighFresh1

supports separation of concerns

ValueTrustConfidenceFreshnessSources
trueUnverifiedHighFresh1

publication year

ValueTrustConfidenceFreshnessSources
2002UnverifiedHighFresh1

requires

ValueTrustConfidenceFreshnessSources
Separate mapper classes for database operationsUnverifiedHighFresh1

integrates with

ValueTrustConfidenceFreshnessSources
relational databasesUnverifiedHighFresh1
Object-Relational Mapping frameworksUnverifiedHighFresh1
Unit of Work PatternUnverifiedModerateFresh1
Identity Map PatternUnverifiedModerateFresh1

developed by

ValueTrustConfidenceFreshnessSources
Martin FowlerUnverifiedHighFresh1

pattern type

ValueTrustConfidenceFreshnessSources
Enterprise Application Architecture PatternUnverifiedHighFresh1

supports model

ValueTrustConfidenceFreshnessSources
Domain ModelUnverifiedHighFresh1
Domain Model PatternUnverifiedHighFresh1
Repository PatternUnverifiedModerateFresh1

based on

ValueTrustConfidenceFreshnessSources
Enterprise Application Architecture patternsUnverifiedHighFresh1
Object-Relational Mapping principlesUnverifiedHighFresh1

enables testability

ValueTrustConfidenceFreshnessSources
trueUnverifiedHighFresh1

alternative to

ValueTrustConfidenceFreshnessSources
Active Record PatternUnverifiedHighFresh1
Table Data Gateway PatternUnverifiedHighFresh1
Table Data GatewayUnverifiedModerateFresh1

implemented in

ValueTrustConfidenceFreshnessSources
HibernateUnverifiedModerateFresh1
SQLAlchemyUnverifiedModerateFresh1
Doctrine ORMUnverifiedModerateFresh1

competes with

ValueTrustConfidenceFreshnessSources
Row Data GatewayUnverifiedModerateFresh1

Alternatives & Similar Tools

Commonly Used With

Related entities

Graph Insights

1 entities depend on Data Mapper Pattern
View full impact analysis →
Claim count: 41Last updated: 4/5/2026Edit history