Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2008

Tip: Looking for answers? Try searching our database.

Hibernate or JPA?

Thread view: 
andreic - 01 Jan 2008 21:14 GMT
Hi,

I am working on a project that involves the use of a database. I would
like to use ORM and my initial thought was to use Hibernate. Meanwhile
I started looking at EJB3 and notices the Java Persistence API... I
don't have much experience with Hibernate, and also didn't use the JPA
before... I would like to get some oppinions on which one is better
and why from people who have used Hibernate and/or JPA before.

Thank you in advance!

Andrei
Daniel Dyer - 01 Jan 2008 21:33 GMT
> Hi,
>
[quoted text clipped - 4 lines]
> before... I would like to get some oppinions on which one is better
> and why from people who have used Hibernate and/or JPA before.

Hibernate *is* an implementation of the JPA specification.  However, it  
also pre-dates JPA, so there are other ways in which you can use it.  
OpenJPA (http://openjpa.apache.org/) is an alternative JPA  
implementation.  Both have their quirks and bugs.  I have mostly used  
Hibernate, but decided to go with OpenJPA on my most recent project.  
Hibernate's dependencies are a bit of mess - there are 3 separate  
downloads required to use JPA and you have to consult the matrix to  
determine which versions of each can be used together.  OpenJPA is more  
focused since it doesn't support non-JPA modes of working (there is only  
one download and fewer library dependencies).

Dan.

Signature

Daniel Dyer
http://www.uncommons.org

Robert Klemme - 02 Jan 2008 11:27 GMT
>> I am working on a project that involves the use of a database. I would
>> like to use ORM and my initial thought was to use Hibernate. Meanwhile
[quoted text clipped - 13 lines]
> focused since it doesn't support non-JPA modes of working (there is only
> one download and fewer library dependencies).

OTOH, if you use Hibernate's JPA implementation as part of a JEE
container (e.g. JBoss) you usually do not need to worry about those
issues because JBoss team has taken care of this already.

Kind regards

    robert


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.