Hibernate和JPA有什么区别? [英] What's the difference between Hibernate and JPA?
问题描述
有人可以透视一下JPA和Hibernate之间的区别吗? 还是这些互补的概念可以一起使用?
Can someone put in perspective the difference between JPA and Hibernate. Or are these complementary concepts, to be used together?
推荐答案
大致上,JPA是Java社区的标准,此处的一些信息). 作为规范,您将不会直接使用JPA,而是JPA实现.
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.
请注意,如果您要使用休眠JPA扩展,则会破坏与其他JPA实现的兼容性(尽管有些人会说为什么要使用另一个JPA实现?".)
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?").
这篇关于Hibernate和JPA有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!