* Reduces checkstyle errors in dao * Reduces checkstyle errors in data-bus * Reduces checkstyle errors in data-locality * Reduces checkstyle errors in data-mapper * Reduces checkstyle errors in data-transfer-object * Reduces checkstyle errors in decorator
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