• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 386
  • Last Modified:

Hibernate or JPA


Hello there,

I want to learn OO database technology,so I can use with my Java skills. I want to know which one should i go for and its benifits. should i learn JPA or hibernate as a starter who wants to learn technology.

cheers
Zolf
0
zolf
Asked:
zolf
  • 5
  • 4
1 Solution
 
for_yanCommented:
in here they recommedn Hibernate :

http://stackoverflow.com/questions/530215/hibernate-vs-jpa-vs-jdo-pros-and-cons-of-each

    JDO and JPA are both specifications, not implementations.
    The idea is you can swap JPA implementations, if you restrict your code to use standard JPA only. (Ditto for JDO.)
    Hibernate can be used as one such implementation of JPA.
    However, Hibernate provides a native API, with features above and beyond that of JPA.

IMO, I would recommend Hibernate.

0
 
for_yanCommented:


and read in here:
      
http://stackoverflow.com/questions/2560500/hibernate-or-jpa-or-jdbc-or

this opinion (beasically it ialso for hibernate as implementaion of JPA):

JPA is certainly to way to go is you want to use object relation mapping - it's implementation agnostic(meaning you can use it with Hibernate, Toplink, etc) and it's the de facto standard. Hibernate has a richer feature set, but this is a non-standard solution - many people use it though... I personally always use JPA backed by Hibernate. I try to stay away from the hibernate specific stuff, but if need it - it's there for me.

0
 
zolfAuthor Commented:

if you were in my place which one would you go for. i mean learn JPA or hibernate.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
for_yanCommented:
I would start learning Hibernate - in the process you'll learn JPA as it is implementation fo JPA - well Hibernate
has some additions - but in the big pciture of learning it is really not that important - ideas are all the same and even formats are the same.
Just follow some hibernate tutorial or book for the beginning.
0
 
zolfAuthor Commented:

thanks a lot,

so first i register for a hibernate course andn then go for JPA course.correct. the institute i am planning to register has both JPA and hibernate,so i was confused which one to join.
0
 
for_yanCommented:
I thhink, it is right register for Hibernate.
After all JPA is specification, and Hibernate will aloow you to do te real job,
with JPA you need then still to deal with some implementation.
And while learning implemnnation you'll get most of the things about JPA anyway
0
 
zolfAuthor Commented:

cheers, can you refer me some good books on hibernate for beginners like me
0
 
for_yanCommented:
I was recently reading reviews of Hibernate books but most folks were not very happy.
Most comprehesive is Hibernate in Action or Java Persistence with Hibernate  (the smae authors)
but not very much for the beginners - too many details.
I think Harnessing Hibernate is not bad, but I think it has not much on annotations - mostly using XML.
So I read several opinions that internet is better for studying Hibernate
For soem initial idea I think Harnessing Hibernate would be fine.
there are a few books for the beginners , but they have not many stars on amazon:

http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dstripbooks&field-keywords=Hibernate&x=15&y=11
0
 
zolfAuthor Commented:
cheers mate,i agree there are no good books on hibernate
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now