When implementing the DataMapper pattern, should the class model that I implement in the DataMapper package more closely resemble the domain model or the data model?
Asked
Active
Viewed 545 times
1 Answers
3
The whole point of a datamapper is to make the mapping transparent. So you class should be constructed on the terms of the object model. The gory details of mapping it back/forth from the storage (be it database or otherwise), resides in the mapper.

troelskn
- 115,121
- 27
- 131
- 155