Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between Hibernate and JPA?

Tags:

hibernate

jpa

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

like image 340
bmw0128 Avatar asked Dec 23 '08 17:12

bmw0128


1 Answers

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?").

like image 50
cheng81 Avatar answered Sep 20 '22 15:09

cheng81