This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes difference betweet Hibernate and JPA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "difference betweet Hibernate and JPA" Watch "difference betweet Hibernate and JPA" New topic

difference betweet Hibernate and JPA

Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

May I know what is the difference between JPA and hibernate and please let me know if i can avoid hibernate if i am using JPA.
2/ am i supposed to use EJB and application server to use JPA.

please let me know.

Vinod Tiwari
Ranch Hand

Joined: Feb 06, 2008
Posts: 466

Please refer this post

Vinod Tiwari | Twitter | Shikshanirman | Guftgu
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

As far as the second question goes, you do not need an application server to use JPA.

I wrote a fairly popular book on Hibernate and JPA, and all of the examples (with the exception of two that actually create a web-based user interface) are run and tested on nothing more than an installation of the JDK. That's the beauty of JPA - it's only dependent on an implementation of the JPA spec, which is what Hibernate provides; it does not require any special application server or anything.

-Cameron McKenzie
I agree. Here's the link:
subject: difference betweet Hibernate and JPA
jQuery in Action, 3rd edition