Reputation: 23035
I am asking this question because I am totally confused. Someone I know asked me to rate my JPA knowledge and Hibernate experience. As I know, JPA is a specification, while Hibernate is an implementation of it, so I can rate Hibernate exp not JPA. Or else, is there something I am missing?
Upvotes: 0
Views: 447
Reputation: 89
Upvotes: 0
Reputation: 569
JPA Annotations:
Hibernate implements JPA specification.
Hibernate Annotations does following additional:
Thanks,
For other interesting blog posts visit - http://javaho.wordpress.com
Upvotes: 0
Reputation: 630
JPA: set of interfaces which specifies how Java objects should interact with database. Set of interfaces also means that set of corresponding functions which have to be implemented.
Hibernate: is an implementation of JPA. It takes JPA interfaces and implements corresponding methods.
There are also other JPA implementations like OpenJPA etc. These are similar to Hibernate, they take JPA and implement it.
By the way, there are additional features of Hibernate, so it can be concluded that Hibernate not only implements JPA, but also has additional features.
Upvotes: 1
Reputation: 1597
Hibernate implements JPA specification but what's more Hibernate adds some more features in its API. So you can have experience in JPA but you don't have any knowledge about Hibernate additional features. That's what I understand.
Upvotes: 3