JPA - 休眠 [英] JPA - Hibernate

查看:128
本文介绍了JPA - 休眠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以透视JPA和Hibernate之间的区别。
或者这些互补的概念是一起使用的?

解决方案

粗略地说,JPA是java社区的一个标准,这里的规格已经实施(和扩展)由Hibernate的人(一些信息在这里)。
作为一个规范,你不会直接使用JPA,而是一个JPA实现。



注意,如果你使用hibernate JPA的扩展,你将打破与其他JPA实现的兼容性(尽管有些人会说为什么你应该使用另一个JPA实现?)。

Can someone put in perspective the difference between JPA and Hibernate. Or are these complementary concepts, to be used together?

解决方案

Roughly, JPA is a standard from the java community, here the specs, which has been implemented (and extended) by the Hibernate guys (some info here). Being a spec, you will not be using JPA directly, but a JPA implementation.

Beware that if you'll use the hibernate JPAs' extensions, you'll break the compatibility with other JPA implementations (though some will say "why you should use another JPA implementation?").

这篇关于JPA - 休眠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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