my dog learned polymorphism*
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
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "difference betweet Hibernate and JPA" Watch "difference betweet Hibernate and JPA" New topic
Author

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.

rahul
Vinod Tiwari
Ranch Hand

Joined: Feb 06, 2008
Posts: 459
    
    1
Please refer this post


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

Joined: Aug 26, 2006
Posts: 4968
    
    1

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
 
 
subject: difference betweet Hibernate and JPA
 
Similar Threads
Difference between Hibernate and JPA
Which JPA RI to use ?
EJB3 or hibernate
EJB3 Entity Beans or Hibernate 3.2
JPA - What is the use of persistence.xml