Skip to content

Object-relational mapping

Connecting program objects to data in a relational database.

Also known asORM
Data platforms

What is object-relational mapping?

Object-relational mapping, or ORM, connects program objects or models to relational database structures. A corresponding tool translates many accesses into database operations. Field, relationship and change handling depend on the ORM and its configuration. The approach does not make schema, constraint, query and migration decisions for the team.

In a fictional portal, the ServiceRequest model represents a saved request. Changing an object in memory does not automatically mean a durable database change with every tool; the intended saving workflow must run. The team checks generated queries, required data and access rights. A conveniently expressed model query guarantees neither suitable query performance nor permission to see all returned requests.

Sources