Is PostgreSQL and Oracle Object-Relational storage the same as an ORM?

允我心安 提交于 2019-12-25 04:22:36

问题


Is the built in ability of PostgreSQL and Oracle Object-Relational mapping the same as an ORM like Hibernate, SQLAlchemy, or Doctrine? Are these databases queried and used just like objects you'd get back from ORMs?

EDIT: Do I misunderstand what an ORDBMS is? Stil learning. http://www.postgresql.org/docs/8.2/static/intro-whatis.html http://docs.oracle.com/cd/E11882_01/appdev.112/e11822/toc.htm

EDIT: I found it here also.

http://en.wikipedia.org/wiki/Comparison_of_object-relational_database_management_systems


回答1:


The "O" in ORDBMS (Object Relational Database Management System) refers to some object-oriented features in PostgreSQL:

  • OIDs (mostly deprecated for non-system tables)

  • Inheritance

  • Dot function call syntax

  • User-definable type system including composite types

  • Context-sensitive operators and functions.

It's up for debate where to draw the line exactly. Here is a recent discussion on the pgsql-advocacy list with more details.

All of this is very different in nature from "ORMs like Hibernate, SQLAlchemy or Doctrine".
An ORM (Object-relational mapping) is trying to translate objects of the respective programming language to relations in a database.



来源:https://stackoverflow.com/questions/22617931/is-postgresql-and-oracle-object-relational-storage-the-same-as-an-orm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!