user1229597
user1229597

Reputation: 11

What is the difference between DataMapper and ORM?

What is the difference between the DataMapper and ORM? I thought that the DataMapper is a form of ORM, is it not? If you would provide the defenition of a DataMapper and ORM in your own words I would greatly appreciate it.

Thank you all for you help and support.

Upvotes: 1

Views: 2780

Answers (1)

Andrei Schneider
Andrei Schneider

Reputation: 3563

From P of EAA: Data Mapper is a layer of Mappers that moves data between objects and a database while keeping them independent of each other and the mapper itself.

ORM (Object Relational Mapping) is an possible implementation of Data Mapper. ORM is a technique/solution that provides an object-based view of data to applications which it can manipulate

Upvotes: 1

Related Questions