Data Mapper Pattern
A separate layer moves data between objects and tables. A data source architecture pattern in the Enterprise Application Patterns catalog.
A separate layer moves data between objects and tables.
- Family
- Enterprise Application Patterns
- Category
- Data Source Architecture
- Source
- Martin Fowler — Patterns of Enterprise Application Architecture
More data source architecture patterns
- Table Data Gateway — One object holds all SQL for one table.
- Row Data Gateway — One object per database row, with no domain logic.
- Active Record — A domain object that also loads and saves itself.