layout | title | folder | permalink | pumlid | categories | tags | ||
---|---|---|---|---|---|---|---|---|
pattern |
Data Mapper |
data-mapper |
/patterns/data-mapper/ |
JShB3OGm303HLg20nFVjnYGM1CN6ycTfVtFSsnjfzY5jPgUqkLqHwXy0mxUU8wuyqidQ8q4IjJqCO-QBWGOtVh5qyd5AKOmW4mT6Nu2-ZiAekapH_hkcSTNa-GC0 |
Persistence Tier |
|
A layer of mappers that moves data between objects and a database while keeping them independent of each other and the mapper itself
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