Link to home
Start Free TrialLog in
Avatar of Zolf
ZolfFlag for United Arab Emirates

asked on

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
Avatar of for_yan
for_yan
Flag of United States of America image

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.



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.

Avatar of Zolf

ASKER


if you were in my place which one would you go for. i mean learn JPA or hibernate.
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.
Avatar of Zolf

ASKER


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.
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
Avatar of Zolf

ASKER


cheers, can you refer me some good books on hibernate for beginners like me
ASKER CERTIFIED SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zolf

ASKER

cheers mate,i agree there are no good books on hibernate