mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 20:58:35 +00:00
71e3443e0e
Otherwise the picture cant be found, as the jekyll build process will put this file in a 'dm' directory and the other stuff like resources in a 'data-mapper' directory (because resources dont have permalink specified they are served static)
713 B
713 B
layout, title, folder, permalink, categories, tags
| layout | title | folder | permalink | categories | tags | ||
|---|---|---|---|---|---|---|---|
| pattern | Data Mapper | data-mapper | /patterns/data-mapper/ | Persistence Tier |
|
Intent
A layer of mappers that moves data between objects and a database while keeping them independent of each other and the mapper itself
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
