Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference betweet Hibernate and JPA

 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 466
1
IntelliJ IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please refer this post
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic