Can someone put in perspective the difference between JPA and Hibernate. Or are these complementary concepts, to be used together?
+5
A:
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?").
cheng81
2008-12-23 19:20:07
+2
A:
I will echo cheng81's comments and also put in a vote for using the plain Hibernate APIs. The feature set of JPA is smaller than Hibernate's and I see no reason to handicap yourself with "pure JPA" just because it's a "standard."
cliff.meyers
2009-01-02 05:12:38