Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.08 KB

README.md

File metadata and controls

32 lines (24 loc) · 1.08 KB
layout title folder permalink categories language tags
pattern
Data Mapper
data-mapper
/patterns/data-mapper/
Architectural
en
Decoupling

Intent

A layer of mappers that moves data between objects and a database while keeping them independent of each other and the mapper itself

Class diagram

alt text

Applicability

Use the Data Mapper in any of the following situations

  • when you want to decouple data objects from DB access layer
  • when you want to write multiple data retrieval/persistence implementations

Tutorials

Credits