Home > Backend Development > PHP Problem > What is object relational mapping

What is object relational mapping

王林
Release: 2023-03-01 19:16:01
Original
3914 people have browsed it

Object-relational mapping is the automatic persistence of objects in object-oriented language programs into relational databases by using metadata that describes the mapping between objects and databases. Essentially converting data from one form to another.

What is object relational mapping

Definition:

Object Relational Mapping (ORM for short) describes the mapping between objects and databases by using Metadata to automatically persist objects in object-oriented language programs into relational databases.

Essentially, it is to convert data from one form to another.

Object/Relation Mapping (ORM) was developed with the development of object-oriented software development methods.

Objects and relational data are two forms of expression of business entities. Business entities are represented as objects in memory and as relational data in the database. There are associations and inheritance relationships between objects in memory, but in the database, relational data cannot directly express many-to-many associations and inheritance relationships.

Therefore, object-relational mapping (ORM) systems generally exist in the form of middleware, which mainly implements the mapping of program objects to relational database data.

For more related knowledge, please visit php Chinese website.

The above is the detailed content of What is object relational mapping. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template