Hibernate / Toplink在JPA上面提供什么? [英] What does Hibernate/Toplink offer above JPA?

查看:106
本文介绍了Hibernate / Toplink在JPA上面提供什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,JPA本身提供了诸如ORM,JPQL,实体关系映射等所有闪亮功能。但我不明白,为什么人们在JPA之上使用Hibernate或Toplink。



Hibernate提供的JPA本身没有什么? 解决方案

JPA只是一个规范。 Hibernate和TopLink是该规范的实现。

另外,JPA规范有点弱,只提供了Hibernate和TopLink提供的功能的一部分。有时需要或必须超越JPA并使用底层实现的专有功能。


As far as I know, JPA itself offers all the shiny features like ORM, JPQL, entity relations mapping and so on. But I don't really understand, why do people use Hibernate or Toplink on top of JPA.

What does Hibernate offer that JPA itself doesn't have?

解决方案

JPA is just a specification. Hibernate and TopLink are implementations of that specification.

Also, the JPA spec is a bit weak, it provides only a subset of the functions that the likes of Hibernate and TopLink provide. Sometimes it is desirable or necessary to go beyond JPA and use the proprietary features of the underlying implementation.

这篇关于Hibernate / Toplink在JPA上面提供什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆