• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JPA and Hibernate

 
Greenhorn
Posts: 22
Android Netbeans IDE Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wellcome Richard Chesterwood!
Why some experts say that: "JPA is not an implementation, it will not provide any concrete functionality to your application". And whats the difference against Hibernate?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Richard answered a couple of similar questions recently:

https://coderanch.com/forums/posts/list/635584#2913023
https://coderanch.com/forums/posts/list/635582#2912921
 
Virtual Pair Programmers Rep
Posts: 29
7
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes it is indeed a common source of confusion. Jaikiran's links should help, but briefly:

JPA is just a specification, effectively a collection of Java interfaces that specify that, for example, to call JPA you will use an interface called "Entity", with a fixed collection of methods.

Anybody is free to implement JPA, and they can then compete with the other implementations. Perhaps one implementation of JPA is fast, perhaps another has better documentation.

The big implementations are Hibernate (although it has a non standard "classic" mode which pre dates JPA and many projects are still using), EclipseLink (not related to the IDE, it used to be called TopLink from Oracle) and OpenJPA from Apache.

So JPA will provide you will the interfaces, but the concrete implementations will be a set of JAR files on your classpath.

Cheers
Richard.
 
Greenhorn
Posts: 22
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Richard,

What do you envision for Hibernate in a near future compared to other options in the Market and what is the best advised you can give for a beginner before jumping into Hibernate,

Thank you Richard,
 
Richard Chesterwood
Virtual Pair Programmers Rep
Posts: 29
7
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Carlos Borrero wrote:Hi Richard,

What do you envision for Hibernate in a near future compared to other options in the Market and what is the best advised you can give for a beginner before jumping into Hibernate,

Thank you Richard,



Hi Carlos, to be honest I've stopped trying to predict the future because I'm always wrong!

To be a beginner, I would recommend:

1) favour JPA over the classic Hibernate API, although I would still learn both. Try not to get to wound up over the difference, it was largely a political thing and we just have to deal with the differences.

2) Don't think that JPA is a "keep SQL simple" tool, you need to invest just as much time in learning efficient SQL. Or have a friendly DBA type on hand.

3) The other options in the market right now are of course the "NoSQL" databases, so if you can also invest some time in learning some of the leading NoSQL databases like Neo4j, Mongo etc. Some predictions are for a polyglot database world, so the programmer of the future may need to be fluent in them all.

That's just my opinion - good luck!
Richard.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic