Advance Java: ORMJPAHibernate之间的关系

Advance Java: ORMJPAHibernate之间的关系,第1张

Advance Java: ORM/JPA/Hibernate之间的关系

Java Persistence API: JPA.
sounds like ORM: object relational Mapping. but ORM is like an idea, a thought, but JPA is the standard(don’t implement because it’s interface) based on ORM idea, using Java.
Hibernate is one of the framework that implements the idea of ORM.

ORM思想的优点:
encapsulate all the details of data access, don’t need to worry about deal with DB record directly, there will be Java objects for us to manipulate.
ORM思想的缺点

  1. low performance (because of tons of mapping)
  2. bad at if we need join tables.

简而言之就是三角关系。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/4660434.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-06
下一篇 2022-11-06

发表评论

登录后才能评论

评论列表(0条)

保存