How is the Data Mapper pattern different from the Repository Pattern?
[the Repository is] another layer of abstraction over the mapping layer where query construction code is concentrated. The DataMapper ensures the DB side of the fence doesn’t need to know about the specifics of your business logic and how the data is kept in memory by your business objects and your business side of the … Read more